public interface WxCpExternalContactService
限定符和类型 | 方法和说明 |
---|---|
WxCpContactWayResult |
addContactWay(@NonNull WxCpContactWayInfo info)
配置客户联系「联系我」方式
<pre>
企业可以在管理后台-客户联系中配置成员的「联系我」的二维码或者小程序按钮,客户通过扫描二维码或点击小程序上的按钮,即可获取成员联系方式,主动联系到成员。
|
WxCpUserExternalTagGroupInfo |
addCorpTag(WxCpUserExternalTagGroupInfo tagGroup)
<pre>
企业可通过此接口向客户标签库中添加新的标签组和标签,每个企业最多可配置3000个企业标签。
|
java.lang.String |
addGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template)
<pre>
添加入群欢迎语素材。
|
WxCpAddMomentResult |
addMomentTask(WxCpAddMomentTask task)
<pre>
企业和第三方应用可通过该接口创建客户朋友圈的发表任务。
|
WxCpMsgTemplateAddResult |
addMsgTemplate(WxCpMsgTemplate wxCpMsgTemplate)
添加企业群发消息任务
企业可通过此接口添加企业群发消息的任务并通知客服人员发送给相关客户或客户群。
|
WxCpBaseResp |
closeTempChat(@NonNull java.lang.String userId,
@NonNull java.lang.String externalUserId)
结束临时会话
<pre>
将指定的企业成员和客户之前的临时会话断开,断开前会自动下发已配置的结束语。
|
java.lang.String |
convertToOpenid(java.lang.String externalUserid)
企业和服务商可通过此接口,将微信外部联系人的userid转为微信openid,用于调用支付相关接口。
|
WxCpBaseResp |
delCorpTag(java.lang.String[] tagId,
java.lang.String[] groupId)
<pre>
企业可通过此接口删除客户标签库中的标签,或删除整个标签组。
|
WxCpBaseResp |
deleteContactWay(@NonNull java.lang.String configId)
删除企业已配置的「联系我」方式
<pre>
删除一个已配置的「联系我」二维码或者「联系我」小程序按钮。
|
WxCpBaseResp |
delGroupWelcomeTemplate(java.lang.String templateId,
java.lang.String agentId)
<pre>
删除入群欢迎语素材。
|
WxCpBaseResp |
editCorpTag(java.lang.String id,
java.lang.String name,
java.lang.Integer order)
<pre>
企业可通过此接口编辑客户标签/标签组的名称或次序值。
|
WxCpBaseResp |
editGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template)
<pre>
编辑入群欢迎语素材。
|
WxCpBaseResp |
finishExternalUserIdMigration(java.lang.String corpid)
设置迁移完成
<pre>
文档地址:https://open.work.weixin.qq.com/api/doc/35863#转换external_userid
企业授权确认之后,且服务商完成了新旧external_userid的迁移,即可主动将该企业设置为“迁移完成”,
设置之后,从该企业获取到的将是新的external_userid。
|
WxCpExternalContactInfo |
getContactDetail(java.lang.String userId,
java.lang.String cursor)
获取客户详情.
|
WxCpExternalContactBatchInfo |
getContactDetailBatch(java.lang.String[] userIdList,
java.lang.String cursor,
java.lang.Integer limit)
批量获取客户详情.
|
WxCpContactWayInfo |
getContactWay(@NonNull java.lang.String configId)
获取企业已配置的「联系我」方式
<pre>
批量获取企业配置的「联系我」二维码和「联系我」小程序按钮。
|
WxCpUserExternalTagGroupList |
getCorpTagList(java.lang.String[] tagId)
<pre>
企业可通过此接口获取企业客户标签详情。
|
WxCpUserExternalTagGroupList |
getCorpTagList(java.lang.String[] tagId,
java.lang.String[] groupId)
<pre>
企业可通过此接口获取企业客户标签详情。
|
WxCpExternalContactInfo |
getExternalContact(java.lang.String userId)
已过时。
|
WxCpUserExternalGroupChatInfo |
getGroupChat(java.lang.String chatId,
java.lang.Integer needName)
<pre>
通过客户群ID,获取详情。
|
WxCpUserExternalGroupChatStatistic |
getGroupChatStatistic(java.util.Date startTime,
java.lang.Integer orderBy,
java.lang.Integer orderAsc,
java.lang.Integer pageIndex,
java.lang.Integer pageSize,
java.lang.String[] userIds,
java.lang.String[] partyIds)
<pre>
获取指定日期全天的统计数据。
|
WxCpGroupMsgListResult |
getGroupMsgListV2(java.lang.String chatType,
@NonNull java.util.Date startTime,
@NonNull java.util.Date endTime,
java.lang.String creator,
java.lang.Integer filterType,
java.lang.Integer limit,
java.lang.String cursor)
<pre>
企业和第三方应用可通过此接口获取企业与成员的群发记录。
|
WxCpGroupMsgResult |
getGroupMsgResult(java.lang.String msgid,
java.lang.Integer limit,
java.lang.String cursor)
<pre>
企业跟第三方应用可通过该接口获取到创建企业群发的群发发送结果。
|
WxCpGroupMsgSendResult |
getGroupMsgSendResult(java.lang.String msgid,
java.lang.String userid,
java.lang.Integer limit,
java.lang.String cursor)
<pre>
企业和第三方应用可通过此接口获取企业与成员的群发记录。
|
WxCpGroupMsgTaskResult |
getGroupMsgTask(java.lang.String msgid,
java.lang.Integer limit,
java.lang.String cursor)
<pre>
获取群发成员发送任务列表。
|
WxCpGroupWelcomeTemplateResult |
getGroupWelcomeTemplate(java.lang.String templateId)
<pre>
获取入群欢迎语素材。
|
WxCpGetMomentComments |
getMomentComments(java.lang.String momentId,
java.lang.String userId)
<pre>
获取客户朋友圈全部的发表记录 获取客户朋友圈的互动数据
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
</pre>
|
WxCpGetMomentCustomerList |
getMomentCustomerList(java.lang.String momentId,
java.lang.String userId,
java.lang.String cursor,
java.lang.Integer limit)
<pre>
获取客户朋友圈全部的发表记录 获取客户朋友圈发表时选择的可见范围
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
</pre>
|
WxCpGetMomentList |
getMomentList(java.lang.Long startTime,
java.lang.Long endTime,
java.lang.String creator,
java.lang.Integer filterType,
java.lang.String cursor,
java.lang.Integer limit)
<pre>
获取客户朋友圈全部的发表记录 获取企业全部的发表列表
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
</pre>
|
WxCpGetMomentSendResult |
getMomentSendResult(java.lang.String momentId,
java.lang.String userId,
java.lang.String cursor,
java.lang.Integer limit)
<pre>
获取客户朋友圈全部的发表记录 获取客户朋友圈发表后的可见客户列表
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
</pre>
|
WxCpGetMomentTask |
getMomentTask(java.lang.String momentId,
java.lang.String cursor,
java.lang.Integer limit)
<pre>
获取客户朋友圈全部的发表记录 获取客户朋友圈企业发表的列表
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
</pre>
|
WxCpGetMomentTaskResult |
getMomentTaskResult(java.lang.String jobId)
<pre>
由于发表任务的创建是异步执行的,应用需要再调用该接口以获取创建的结果。
|
WxCpNewExternalUserIdList |
getNewExternalUserId(java.lang.String[] externalUserIdList)
转换external_userid
<pre>
文档地址:https://open.work.weixin.qq.com/api/doc/35863#转换external_userid
对于历史已授权的企业,在2022年3月1号之前,所有接口与回调返回的external_userid仍然为旧的external_userid,
从2022年3月1号0点开始,所有输入与返回的external_userid字段,将启用升级后的external_userid。
|
WxCpProductAlbumResult |
getProductAlbum(java.lang.String productId)
<pre>
获取商品图册
https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
</pre>
|
WxCpProductAlbumListResult |
getProductAlbumList(java.lang.Integer limit,
java.lang.String cursor)
<pre>
获取商品图册
https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表
</pre>
|
WxCpUserExternalUserBehaviorStatistic |
getUserBehaviorStatistic(java.util.Date startTime,
java.util.Date endTime,
java.lang.String[] userIds,
java.lang.String[] partyIds)
<pre>
企业可通过此接口获取成员联系客户的数据,包括发起申请数、新增客户数、聊天数、发送消息数和删除/拉黑成员的客户数等指标。
|
java.util.List<java.lang.String> |
listExternalContacts(java.lang.String userId)
获取客户列表.
|
java.util.List<java.lang.String> |
listFollowers()
企业和第三方服务商可通过此接口获取配置了客户联系功能的成员(Customer Contact)列表。
|
WxCpUserExternalGroupChatList |
listGroupChat(java.lang.Integer pageIndex,
java.lang.Integer pageSize,
int status,
java.lang.String[] userIds,
java.lang.String[] partyIds)
|
WxCpUserExternalGroupChatList |
listGroupChat(java.lang.Integer limit,
java.lang.String cursor,
int status,
java.lang.String[] userIds)
<pre>
该接口用于获取配置过客户群管理的客户群列表。
|
WxCpUserExternalUnassignList |
listUnassignedList(java.lang.Integer pageId,
java.lang.String cursor,
java.lang.Integer pageSize)
获取待分配的离职成员列表
企业和第三方可通过此接口,获取所有离职成员的客户列表,并可进一步调用分配离职成员的客户接口将这些客户重新分配给其他企业成员。
|
WxCpBaseResp |
markTag(java.lang.String userid,
java.lang.String externalUserid,
java.lang.String[] addTag,
java.lang.String[] removeTag)
<pre>
企业可通过此接口为指定成员的客户添加上由企业统一配置的标签。
|
java.lang.String |
opengidToChatid(java.lang.String opengid)
客户群opengid转换
<pre>
文档地址:https://open.work.weixin.qq.com/api/doc/90000/90135/94822
用户在微信里的客户群里打开小程序时,某些场景下可以获取到群的opengid,如果该群是企业微信的客户群,
则企业或第三方可以调用此接口将一个opengid转换为客户群chat_id
权限说明:
企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)
|
WxCpUserTransferCustomerResp |
resignedTransferCustomer(WxCpUserTransferCustomerReq req)
企业可通过此接口,分配离职成员的客户给其他成员。
|
WxCpUserTransferResultResp |
resignedTransferResult(java.lang.String handOverUserid,
java.lang.String takeOverUserid,
java.lang.String cursor)
企业和第三方可通过此接口查询离职成员的客户分配情况。
|
void |
sendWelcomeMsg(WxCpWelcomeMsg msg)
发送新客户欢迎语
<pre>
企业微信在向企业推送添加外部联系人事件时,会额外返回一个welcome_code,企业以此为凭据调用接口,即可通过成员向新添加的客户发送个性化的欢迎语。
|
java.lang.String |
toServiceExternalUserid(java.lang.String externalUserid)
代开发应用external_userid转换
<pre>
文档地址:https://work.weixin.qq.com/api/doc/90001/90143/95195
企业同时安装服务商第三方应用以及授权代开发自建应用的时,服务商可使用该接口将代开发应用获取到的外部联系人id跟第三方应用的id进行关联,
该接口可将代开发自建应用获取到的external_userid转换为服务商第三方应用的external_userid。
|
WxCpUserTransferCustomerResp |
transferCustomer(WxCpUserTransferCustomerReq req)
企业可通过此接口,转接在职成员的客户给其他成员。
|
WxCpBaseResp |
transferExternalContact(java.lang.String externalUserid,
java.lang.String handOverUserid,
java.lang.String takeOverUserid)
已过时。
此后续将不再更新维护, 建议使用
transferCustomer(WxCpUserTransferCustomerReq) |
WxCpUserExternalGroupChatTransferResp |
transferGroupChat(java.lang.String[] chatIds,
java.lang.String newOwner)
企业可通过此接口,将已离职成员为群主的群,分配给另一个客服成员。
|
WxCpUserTransferResultResp |
transferResult(java.lang.String handOverUserid,
java.lang.String takeOverUserid,
java.lang.String cursor)
企业和第三方可通过此接口查询在职成员的客户转接情况。
|
java.lang.String |
unionidToExternalUserid(java.lang.String unionid,
java.lang.String openid)
服务商为企业代开发微信小程序的场景,服务商可通过此接口,将微信客户的unionid转为external_userid。
|
WxCpExternalUserIdList |
unionidToExternalUserid3rd(java.lang.String unionid,
java.lang.String openid,
java.lang.String corpid)
企业客户微信unionid的升级 - unionid查询external_userid
<pre>
文档地址:https://open.work.weixin.qq.com/api/doc/35863#4.2%20unionid%E6%9F%A5%E8%AF%A2external_userid
当微信用户在微信中使用第三方应用的小程序或公众号时,第三方可将获取到的unionid与openid,调用此接口转换为企业客户external_userid。
|
WxCpBaseResp |
updateContactWay(@NonNull WxCpContactWayInfo info)
更新企业已配置的「联系我」方式
<pre>
更新企业配置的「联系我」二维码和「联系我」小程序按钮中的信息,如使用人员和备注等。
|
void |
updateRemark(WxCpUpdateRemarkRequest request)
修改客户备注信息.
|
me.chanjar.weixin.common.bean.result.WxMediaUploadResult |
uploadAttachment(java.lang.String mediaType,
java.lang.Integer attachmentType,
java.io.File file)
<pre>
上传附件资源
https://open.work.weixin.qq.com/api/doc/90001/90143/95178
</pre>
|
me.chanjar.weixin.common.bean.result.WxMediaUploadResult |
uploadAttachment(java.lang.String mediaType,
java.lang.String fileType,
java.lang.Integer attachmentType,
java.io.InputStream inputStream)
<pre>
上传附件资源
https://open.work.weixin.qq.com/api/doc/90001/90143/95178
</pre>
|
WxCpContactWayResult addContactWay(@NonNull @NonNull WxCpContactWayInfo info) throws me.chanjar.weixin.common.error.WxErrorException
info
- 客户联系「联系我」方式me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpContactWayInfo getContactWay(@NonNull @NonNull java.lang.String configId) throws me.chanjar.weixin.common.error.WxErrorException
configId
- 联系方式的配置id,必填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp updateContactWay(@NonNull @NonNull WxCpContactWayInfo info) throws me.chanjar.weixin.common.error.WxErrorException
info
- 客户联系「联系我」方式me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp deleteContactWay(@NonNull @NonNull java.lang.String configId) throws me.chanjar.weixin.common.error.WxErrorException
configId
- 企业联系方式的配置id,必填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp closeTempChat(@NonNull @NonNull java.lang.String userId, @NonNull @NonNull java.lang.String externalUserId) throws me.chanjar.weixin.common.error.WxErrorException
userId
- the user idexternalUserId
- the external user idme.chanjar.weixin.common.error.WxErrorException
- the wx error exception@Deprecated WxCpExternalContactInfo getExternalContact(java.lang.String userId) throws me.chanjar.weixin.common.error.WxErrorException
getContactDetail(String, String)
userId
- 外部联系人的useridme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpExternalContactInfo getContactDetail(java.lang.String userId, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
userId
- 外部联系人的userid,注意不是企业成员的帐号cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填me.chanjar.weixin.common.error.WxErrorException
- .java.lang.String convertToOpenid(java.lang.String externalUserid) throws me.chanjar.weixin.common.error.WxErrorException
externalUserid
- 微信外部联系人的useridme.chanjar.weixin.common.error.WxErrorException
- .java.lang.String unionidToExternalUserid(@NotNull java.lang.String unionid, java.lang.String openid) throws me.chanjar.weixin.common.error.WxErrorException
unionid
- 微信客户的unionidopenid
- openidme.chanjar.weixin.common.error.WxErrorException
- .java.lang.String toServiceExternalUserid(@NotNull java.lang.String externalUserid) throws me.chanjar.weixin.common.error.WxErrorException
externalUserid
- 代开发自建应用获取到的外部联系人IDme.chanjar.weixin.common.error.WxErrorException
- .WxCpExternalUserIdList unionidToExternalUserid3rd(@NotNull java.lang.String unionid, @NotNull java.lang.String openid, java.lang.String corpid) throws me.chanjar.weixin.common.error.WxErrorException
unionid
- 微信客户的unionidopenid
- 微信客户的openidcorpid
- 需要换取的企业corpid,不填则拉取所有企业me.chanjar.weixin.common.error.WxErrorException
- .WxCpNewExternalUserIdList getNewExternalUserId(java.lang.String[] externalUserIdList) throws me.chanjar.weixin.common.error.WxErrorException
externalUserIdList
- 微信客户的unionidme.chanjar.weixin.common.error.WxErrorException
- .WxCpBaseResp finishExternalUserIdMigration(@NotNull java.lang.String corpid) throws me.chanjar.weixin.common.error.WxErrorException
corpid
- 企业corpidme.chanjar.weixin.common.error.WxErrorException
- .java.lang.String opengidToChatid(@NotNull java.lang.String opengid) throws me.chanjar.weixin.common.error.WxErrorException
opengid
- 小程序在微信获取到的群ID,参见wx.getGroupEnterInfo(https://developers.weixin.qq.com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html)me.chanjar.weixin.common.error.WxErrorException
- .WxCpExternalContactBatchInfo getContactDetailBatch(java.lang.String[] userIdList, java.lang.String cursor, java.lang.Integer limit) throws me.chanjar.weixin.common.error.WxErrorException
userIdList
- 企业成员的userid列表,注意不是外部联系人的帐号cursor
- the cursorlimit
- the limitme.chanjar.weixin.common.error.WxErrorException
- .void updateRemark(WxCpUpdateRemarkRequest request) throws me.chanjar.weixin.common.error.WxErrorException
request
- 备注信息请求me.chanjar.weixin.common.error.WxErrorException
- .java.util.List<java.lang.String> listExternalContacts(java.lang.String userId) throws me.chanjar.weixin.common.error.WxErrorException
userId
- 企业成员的useridme.chanjar.weixin.common.error.WxErrorException
- .java.util.List<java.lang.String> listFollowers() throws me.chanjar.weixin.common.error.WxErrorException
me.chanjar.weixin.common.error.WxErrorException
- .WxCpUserExternalUnassignList listUnassignedList(java.lang.Integer pageId, java.lang.String cursor, java.lang.Integer pageSize) throws me.chanjar.weixin.common.error.WxErrorException
pageId
- 分页查询,要查询页号,从0开始cursor
- 分页查询游标,字符串类型,适用于数据量较大的情况,如果使用该参数则无需填写page_id,该参数由上一次调用返回pageSize
- 每次返回的最大记录数,默认为1000,最大值为1000me.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常@Deprecated WxCpBaseResp transferExternalContact(java.lang.String externalUserid, java.lang.String handOverUserid, java.lang.String takeOverUserid) throws me.chanjar.weixin.common.error.WxErrorException
transferCustomer(WxCpUserTransferCustomerReq)
externalUserid
- the external useridhandOverUserid
- the hand over useridtakeOverUserid
- the take over useridme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserTransferCustomerResp transferCustomer(WxCpUserTransferCustomerReq req) throws me.chanjar.weixin.common.error.WxErrorException
req
- 转接在职成员的客户给其他成员请求实体me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserTransferResultResp transferResult(@NotNull java.lang.String handOverUserid, @NotNull java.lang.String takeOverUserid, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
handOverUserid
- 原添加成员的useridtakeOverUserid
- 接替成员的useridcursor
- 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserTransferCustomerResp resignedTransferCustomer(WxCpUserTransferCustomerReq req) throws me.chanjar.weixin.common.error.WxErrorException
req
- 转接在职成员的客户给其他成员请求实体me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserTransferResultResp resignedTransferResult(@NotNull java.lang.String handOverUserid, @NotNull java.lang.String takeOverUserid, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
handOverUserid
- 原添加成员的useridtakeOverUserid
- 接替成员的useridcursor
- 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;me.chanjar.weixin.common.error.WxErrorException
- the wx error exception@Deprecated WxCpUserExternalGroupChatList listGroupChat(java.lang.Integer pageIndex, java.lang.Integer pageSize, int status, java.lang.String[] userIds, java.lang.String[] partyIds) throws me.chanjar.weixin.common.error.WxErrorException
pageIndex
- the page indexpageSize
- the page sizestatus
- the statususerIds
- the user idspartyIds
- the party idsme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalGroupChatList listGroupChat(java.lang.Integer limit, java.lang.String cursor, int status, java.lang.String[] userIds) throws me.chanjar.weixin.common.error.WxErrorException
limit
- 分页,预期请求的数据量,取值范围 1 ~ 1000cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填status
- 客户群跟进状态过滤。0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0userIds
- 群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017);用户ID列表。最多100个me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalGroupChatInfo getGroupChat(java.lang.String chatId, java.lang.Integer needName) throws me.chanjar.weixin.common.error.WxErrorException
chatId
- the chat idneedName
- needNameme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalGroupChatTransferResp transferGroupChat(java.lang.String[] chatIds, java.lang.String newOwner) throws me.chanjar.weixin.common.error.WxErrorException
chatIds
- 需要转群主的客户群ID列表。取值范围: 1 ~ 100newOwner
- 新群主IDme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(java.util.Date startTime, java.util.Date endTime, java.lang.String[] userIds, java.lang.String[] partyIds) throws me.chanjar.weixin.common.error.WxErrorException
startTime
- the start timeendTime
- the end timeuserIds
- the user idspartyIds
- the party idsme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalGroupChatStatistic getGroupChatStatistic(java.util.Date startTime, java.lang.Integer orderBy, java.lang.Integer orderAsc, java.lang.Integer pageIndex, java.lang.Integer pageSize, java.lang.String[] userIds, java.lang.String[] partyIds) throws me.chanjar.weixin.common.error.WxErrorException
startTime
- the start timeorderBy
- the order byorderAsc
- the order ascpageIndex
- the page indexpageSize
- the page sizeuserIds
- the user idspartyIds
- the party idsme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpMsgTemplateAddResult addMsgTemplate(WxCpMsgTemplate wxCpMsgTemplate) throws me.chanjar.weixin.common.error.WxErrorException
wxCpMsgTemplate
- the wx cp msg templateme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionvoid sendWelcomeMsg(WxCpWelcomeMsg msg) throws me.chanjar.weixin.common.error.WxErrorException
msg
- .me.chanjar.weixin.common.error.WxErrorException
- .WxCpUserExternalTagGroupList getCorpTagList(java.lang.String[] tagId) throws me.chanjar.weixin.common.error.WxErrorException
tagId
- the tag idme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalTagGroupList getCorpTagList(java.lang.String[] tagId, java.lang.String[] groupId) throws me.chanjar.weixin.common.error.WxErrorException
tagId
- the tag idgroupId
- the tagGroup idme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpUserExternalTagGroupInfo addCorpTag(WxCpUserExternalTagGroupInfo tagGroup) throws me.chanjar.weixin.common.error.WxErrorException
tagGroup
- the tag groupme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp editCorpTag(java.lang.String id, java.lang.String name, java.lang.Integer order) throws me.chanjar.weixin.common.error.WxErrorException
id
- the idname
- the nameorder
- the orderme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp delCorpTag(java.lang.String[] tagId, java.lang.String[] groupId) throws me.chanjar.weixin.common.error.WxErrorException
tagId
- the tag idgroupId
- the group idme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp markTag(java.lang.String userid, java.lang.String externalUserid, java.lang.String[] addTag, java.lang.String[] removeTag) throws me.chanjar.weixin.common.error.WxErrorException
userid
- the useridexternalUserid
- the external useridaddTag
- the add tagremoveTag
- the remove tagme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpAddMomentResult addMomentTask(WxCpAddMomentTask task) throws me.chanjar.weixin.common.error.WxErrorException
task
- 任务me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpGetMomentTaskResult getMomentTaskResult(java.lang.String jobId) throws me.chanjar.weixin.common.error.WxErrorException
jobId
- 异步任务id,最大长度为64字节,由创建发表内容到客户朋友圈任务接口获取me.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常WxCpGetMomentList getMomentList(java.lang.Long startTime, java.lang.Long endTime, java.lang.String creator, java.lang.Integer filterType, java.lang.String cursor, java.lang.Integer limit) throws me.chanjar.weixin.common.error.WxErrorException
startTime
- 朋友圈记录开始时间。Unix时间戳endTime
- 朋友圈记录结束时间。Unix时间戳creator
- 朋友圈创建人的useridfilterType
- 朋友圈类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit
- 返回的最大记录数,整型,最大值100,默认值100,超过最大值时取默认值me.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常WxCpGetMomentTask getMomentTask(java.lang.String momentId, java.lang.String cursor, java.lang.Integer limit) throws me.chanjar.weixin.common.error.WxErrorException
momentId
- 朋友圈id,仅支持企业发表的朋友圈idcursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit
- 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值me.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常WxCpGetMomentCustomerList getMomentCustomerList(java.lang.String momentId, java.lang.String userId, java.lang.String cursor, java.lang.Integer limit) throws me.chanjar.weixin.common.error.WxErrorException
momentId
- 朋友圈iduserId
- 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的
列表获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员useridcursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit
- 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值me.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常WxCpGetMomentSendResult getMomentSendResult(java.lang.String momentId, java.lang.String userId, java.lang.String cursor, java.lang.Integer limit) throws me.chanjar.weixin.common.error.WxErrorException
momentId
- 朋友圈iduserId
- 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid,
如果是个人创建的朋友圈,创建人userid就是企业发表成员useridcursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit
- 返回的最大记录数,整型,最大值5000,默认值3000,超过最大值时取默认值me.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常WxCpGetMomentComments getMomentComments(java.lang.String momentId, java.lang.String userId) throws me.chanjar.weixin.common.error.WxErrorException
momentId
- 朋友圈iduserId
- 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid,
如果是个人创建的朋友圈,创建人userid就是企业发表成员useridme.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常WxCpGroupMsgListResult getGroupMsgListV2(java.lang.String chatType, @NonNull @NonNull java.util.Date startTime, @NonNull @NonNull java.util.Date endTime, java.lang.String creator, java.lang.Integer filterType, java.lang.Integer limit, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
chatType
- 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群startTime
- 群发任务记录开始时间endTime
- 群发任务记录结束时间creator
- 群发任务创建人企业账号idfilterType
- 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型limit
- 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpGroupMsgSendResult getGroupMsgSendResult(java.lang.String msgid, java.lang.String userid, java.lang.Integer limit, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
msgid
- 群发消息的id,通过获取群发记录列表接口返回userid
- 发送成员userid,通过获取群发成员发送任务列表接口返回limit
- 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpGroupMsgResult getGroupMsgResult(java.lang.String msgid, java.lang.Integer limit, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
msgid
- 群发消息的id,通过创建企业群发接口返回limit
- 返回的最大记录数,整型,最大值10000,默认值10000cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpGroupMsgTaskResult getGroupMsgTask(java.lang.String msgid, java.lang.Integer limit, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
msgid
- 群发消息的id,通过获取群发记录列表接口返回limit
- 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionjava.lang.String addGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws me.chanjar.weixin.common.error.WxErrorException
template
- 素材内容me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp editGroupWelcomeTemplate(WxCpGroupWelcomeTemplateResult template) throws me.chanjar.weixin.common.error.WxErrorException
template
- 素材内容me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpGroupWelcomeTemplateResult getGroupWelcomeTemplate(@NotNull java.lang.String templateId) throws me.chanjar.weixin.common.error.WxErrorException
templateId
- 群欢迎语的素材idme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpBaseResp delGroupWelcomeTemplate(@NotNull java.lang.String templateId, java.lang.String agentId) throws me.chanjar.weixin.common.error.WxErrorException
templateId
- 群欢迎语的素材idtemplateId
- 授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数agentId
- agentIdme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpProductAlbumListResult getProductAlbumList(java.lang.Integer limit, java.lang.String cursor) throws me.chanjar.weixin.common.error.WxErrorException
limit
- 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值cursor
- 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填me.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionWxCpProductAlbumResult getProductAlbum(java.lang.String productId) throws me.chanjar.weixin.common.error.WxErrorException
productId
- 商品idme.chanjar.weixin.common.error.WxErrorException
- the wx error exceptionme.chanjar.weixin.common.bean.result.WxMediaUploadResult uploadAttachment(java.lang.String mediaType, java.lang.String fileType, java.lang.Integer attachmentType, java.io.InputStream inputStream) throws me.chanjar.weixin.common.error.WxErrorException, java.io.IOException
mediaType
- mediaTypefileType
- fileTypeattachmentType
- attachmentTypeinputStream
- inputStreamme.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常java.io.IOException
- 出错抛出异常me.chanjar.weixin.common.bean.result.WxMediaUploadResult uploadAttachment(java.lang.String mediaType, java.lang.Integer attachmentType, java.io.File file) throws me.chanjar.weixin.common.error.WxErrorException
mediaType
- mediaTypeattachmentType
- attachmentTypefile
- fileme.chanjar.weixin.common.error.WxErrorException
- 出错抛出异常