public interface WxCpTaskCardService
任务卡片管理接口. Created by Jeff on 2019-05-16. Updted by HeXiao on 2022-03-09.
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | update(List<String> userIds,
      String taskId,
      String replaceName)
 更新任务卡片消息状态
 详情请见: https://work.weixin.qq.com/api/doc#90000/90135/91579
 注意: 这个方法使用WxCpConfigStorage里的agentId
  | 
| void | updateTemplateCardButton(List<String> userIds,
                        List<Integer> partyIds,
                        List<Integer> tagIds,
                        Integer atAll,
                        String responseCode,
                        String replaceName)更新按钮为不可点击状态
 详情请见https://developer.work.weixin.qq.com/document/path/94888#%E6%9B%B4%E6%96%B0%E6%8C%89%E9%92%AE%E4%B8%BA%E4%B8
 %8D%E5%8F%AF%E7%82%B9%E5%87%BB%E7%8A%B6%E6%80%81 | 
| void | updateTemplateCardButton(TemplateCardMessage templateCardMessage) | 
void update(List<String> userIds, String taskId, String replaceName) throws WxErrorException
更新任务卡片消息状态 详情请见: https://work.weixin.qq.com/api/doc#90000/90135/91579 注意: 这个方法使用WxCpConfigStorage里的agentId
userIds - 企业的成员ID列表taskId - 任务卡片IDreplaceName - 替换文案WxErrorException - the wx error exceptionvoid updateTemplateCardButton(List<String> userIds, List<Integer> partyIds, List<Integer> tagIds, Integer atAll, String responseCode, String replaceName) throws WxErrorException
userIds - 企业的成员ID列表partyIds - 企业的部门ID列表tagIds - 企业的标签ID列表atAll - 更新整个任务接收人员responseCode - 更新卡片所需要消费的code,可通过发消息接口和回调接口返回值获取,一个code只能调用一次该接口,且只能在24小时内调用replaceName - 需要更新的按钮的文案WxErrorException - the wx error exceptionvoid updateTemplateCardButton(TemplateCardMessage templateCardMessage) throws WxErrorException
WxErrorExceptionCopyright © 2024. All rights reserved.