| | |
| | | */ |
| | | WxCpPushResultVO pushText(String content, Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送图文消息(news) |
| | | * |
| | | * @param title 标题 |
| | | * @param description 摘要 |
| | | * @param url 点击跳转地址 |
| | | * @param picUrl 封面图地址(选填) |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushNews(String title, String description, String url, String picUrl, |
| | | Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送文件消息:先把文件上传到企业微信换取 mediaId,再发送文件 |
| | | * |
| | | * @param file 文件 |
| | | * @param fileName 文件名(仅用于日志) |
| | | * @param textContent 文件前的说明文本,可为空 |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushFile(java.io.File file, String fileName, String textContent, |
| | | Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送图片消息:先把图片上传到企业微信换取 mediaId,再发送图片 |
| | | * |
| | | * @param file 图片文件 |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushImage(java.io.File file, Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送视频消息:先把视频上传到企业微信换取 mediaId,再发送视频 |
| | | * |
| | | * @param file 视频文件 |
| | | * @param title 视频标题 |
| | | * @param description 视频描述,可为空 |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushVideo(java.io.File file, String title, String description, |
| | | Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送 Markdown 消息,适合带标题、加粗、列表、引用等排版的正式通知 |
| | | * |
| | | * @param content Markdown 内容(企业微信限制 2048 字节) |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushMarkdown(String content, Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送多图文消息(一次消息带多篇文章) |
| | | * |
| | | * @param articles 图文列表,企业微信限制 1~8 篇 |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushMultiNews(java.util.List<me.chanjar.weixin.cp.bean.article.NewArticle> articles, |
| | | Integer scope, String target); |
| | | |
| | | } |