### Find API Example: Tag Creation Source: https://github.com/notfound403/wecom-sdk/blob/release/README.md Java code snippet demonstrating how to find and use an API, specifically for creating a tag. It shows the interface definition and the expected method signature. ```java public interface TagApi { /** * 创建标签 * @param request the request * @return GenericResponse generic response * @throws WeComException the weComException */ @POST("tag/create") GenericResponse createTag(@Body Tag request) throws WeComException; } ``` -------------------------------- ### Send Various Message Types via Webhook Source: https://github.com/notfound403/wecom-sdk/blob/release/README.md Demonstrates how to send markdown, plain text, news articles, and images (from base64 or input stream) using the WeCom webhook API. Ensure the correct robot key is provided. ```java /** * 企微机器人 * * @throws IOException the io exception */ @Test void webHooks()throws IOException{ // 发 markdown WebhookBody markdownBody=WebhookMarkdownBody.from("这里为markdown消息"); // 发纯文本 WebhookBody textBody=WebhookTextBody.from("这里为纯文本"); // 发图文 WebhookArticle article=new WebhookArticle("这里为标题","这里为图文链接") .picurl("这里为封面图链接") .description("这里为摘要信息"); WebhookBody newsBody=WebhookNewsBody.from(Collections.singletonList(article)); // 从base64发图片 String base64="图片base64"; String md5="图片base64的md5"; WebhookBody imageBody1=WebhookImageBody.from(base64,md5); // 从流发送图片 String path="C:\\Users\\Administrator\\Desktop\\0.png"; InputStream inputStream=Files.newInputStream(Paths.get(path)); WebhookBody imageBody2=WebhookImageBody.from(inputStream); WeComResponse weComResponse=WorkWeChatApi.webhookApi().send("机器人key",markdownBody); Assertions.assertTrue(weComResponse.isSuccessful()); } ``` -------------------------------- ### WeCom SDK Okhttp Compatibility Dependency Source: https://github.com/notfound403/wecom-sdk/blob/release/README.md Maven dependency for WeCom SDK with explicit Okhttp exclusions and specific Okhttp versions to resolve compatibility issues with older Okhttp versions in the project. ```xml cn.felord wecom-sdk 1.3.4 com.squareup.okhttp3 okhttp com.squareup.okhttp3 logging-interceptor com.squareup.okhttp3 okhttp 4.12.0 com.squareup.okhttp3 logging-interceptor 4.12.0 ``` -------------------------------- ### WeCom SDK Maven Dependency Source: https://github.com/notfound403/wecom-sdk/blob/release/README.md Standard Maven dependency for the WeCom SDK. ```xml cn.felord wecom-sdk 1.3.4 ``` -------------------------------- ### WeCom SDK RxJava Version Maven Dependency Source: https://github.com/notfound403/wecom-sdk/blob/release/README.md Maven dependency for the WeCom SDK with RxJava support. ```xml cn.felord rx-wecom-sdk 1.3.4 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.