public interface WxCpExternalContactService
外部联系人管理接口,企业微信的外部联系人的接口和通讯录接口已经拆离 Created by Joe Cao on 2019/6/14
| 限定符和类型 | 方法和说明 |
|---|---|
WxCpContactWayResult |
addContactWay(@NonNull WxCpContactWayInfo info)
配置客户联系「联系我」方式
企业可以在管理后台-客户联系中配置成员的「联系我」的二维码或者小程序按钮,客户通过扫描二维码或点击小程序上的按钮,即可获取成员联系方式,主动联系到成员。
|
WxCpUserExternalTagGroupInfo |
addCorpTag(WxCpUserExternalTagGroupInfo tagGroup)
企业可通过此接口向客户标签库中添加新的标签组和标签,每个企业最多可配置3000个企业标签。
|
WxCpAddMomentResult |
addMomentTask(WxCpAddMomentTask task)
企业和第三方应用可通过该接口创建客户朋友圈的发表任务。
|
WxCpMsgTemplateAddResult |
addMsgTemplate(WxCpMsgTemplate wxCpMsgTemplate)
添加企业群发消息任务
企业可通过此接口添加企业群发消息的任务并通知客服人员发送给相关客户或客户群。
|
WxCpBaseResp |
closeTempChat(@NonNull String userId,
@NonNull String externalUserId)
结束临时会话
将指定的企业成员和客户之前的临时会话断开,断开前会自动下发已配置的结束语。
|
String |
convertToOpenid(String externalUserid)
企业和服务商可通过此接口,将微信外部联系人的userid转为微信openid,用于调用支付相关接口。
|
WxCpBaseResp |
delCorpTag(String[] tagId,
String[] groupId)
企业可通过此接口删除客户标签库中的标签,或删除整个标签组。
|
WxCpBaseResp |
deleteContactWay(@NonNull String configId)
删除企业已配置的「联系我」方式
删除一个已配置的「联系我」二维码或者「联系我」小程序按钮。
|
WxCpBaseResp |
editCorpTag(String id,
String name,
Integer order)
企业可通过此接口编辑客户标签/标签组的名称或次序值。
|
WxCpExternalContactInfo |
getContactDetail(String userId)
获取客户详情.
|
WxCpExternalContactBatchInfo |
getContactDetailBatch(String[] userIdList,
String cursor,
Integer limit)
批量获取客户详情.
|
WxCpContactWayInfo |
getContactWay(@NonNull String configId)
获取企业已配置的「联系我」方式
批量获取企业配置的「联系我」二维码和「联系我」小程序按钮。
|
WxCpUserExternalTagGroupList |
getCorpTagList(String[] tagId)
企业可通过此接口获取企业客户标签详情。
|
WxCpUserExternalTagGroupList |
getCorpTagList(String[] tagId,
String[] groupId)
企业可通过此接口获取企业客户标签详情。
|
WxCpExternalContactInfo |
getExternalContact(String userId)
已过时。
|
WxCpUserExternalGroupChatInfo |
getGroupChat(String chatId,
Integer needName)
通过客户群ID,获取详情。
|
WxCpUserExternalGroupChatStatistic |
getGroupChatStatistic(Date startTime,
Integer orderBy,
Integer orderAsc,
Integer pageIndex,
Integer pageSize,
String[] userIds,
String[] partyIds)
获取指定日期全天的统计数据。
|
WxCpGroupMsgListResult |
getGroupMsgListV2(String chatType,
@NonNull Date startTime,
@NonNull Date endTime,
String creator,
Integer filterType,
Integer limit,
String cursor)
企业和第三方应用可通过此接口获取企业与成员的群发记录。
|
WxCpGroupMsgSendResult |
getGroupMsgSendResult(String msgid,
String userid,
Integer limit,
String cursor)
企业和第三方应用可通过此接口获取企业与成员的群发记录。
|
WxCpGroupMsgTaskResult |
getGroupMsgTask(String msgid,
Integer limit,
String cursor)
获取群发成员发送任务列表。
|
WxCpGetMomentComments |
getMomentComments(String momentId,
String userId)
获取客户朋友圈全部的发表记录 获取客户朋友圈的互动数据
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
|
WxCpGetMomentCustomerList |
getMomentCustomerList(String momentId,
String userId,
String cursor,
Integer limit)
获取客户朋友圈全部的发表记录 获取客户朋友圈发表时选择的可见范围
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
|
WxCpGetMomentList |
getMomentList(Long startTime,
Long endTime,
String creator,
Integer filterType,
String cursor,
Integer limit)
获取客户朋友圈全部的发表记录 获取企业全部的发表列表
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
|
WxCpGetMomentSendResult |
getMomentSendResult(String momentId,
String userId,
String cursor,
Integer limit)
获取客户朋友圈全部的发表记录 获取客户朋友圈发表后的可见客户列表
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
|
WxCpGetMomentTask |
getMomentTask(String momentId,
String cursor,
Integer limit)
获取客户朋友圈全部的发表记录 获取客户朋友圈企业发表的列表
https://open.work.weixin.qq.com/api/doc/90000/90135/93333
|
WxCpGetMomentTaskResult |
getMomentTaskResult(String jobId)
由于发表任务的创建是异步执行的,应用需要再调用该接口以获取创建的结果。
|
WxCpUserExternalUserBehaviorStatistic |
getUserBehaviorStatistic(Date startTime,
Date endTime,
String[] userIds,
String[] partyIds)
企业可通过此接口获取成员联系客户的数据,包括发起申请数、新增客户数、聊天数、发送消息数和删除/拉黑成员的客户数等指标。
|
List<String> |
listExternalContacts(String userId)
获取客户列表.
|
List<String> |
listFollowers()
企业和第三方服务商可通过此接口获取配置了客户联系功能的成员(Customer Contact)列表。
|
WxCpUserExternalGroupChatList |
listGroupChat(Integer pageIndex,
Integer pageSize,
int status,
String[] userIds,
String[] partyIds)
|
WxCpUserExternalGroupChatList |
listGroupChat(Integer limit,
String cursor,
int status,
String[] userIds)
该接口用于获取配置过客户群管理的客户群列表。
|
WxCpUserExternalUnassignList |
listUnassignedList(Integer page,
Integer pageSize)
企业和第三方可通过此接口,获取所有离职成员的客户列表,并可进一步调用离职成员的外部联系人再分配接口将这些客户重新分配给其他企业成员。
|
WxCpBaseResp |
markTag(String userid,
String externalUserid,
String[] addTag,
String[] removeTag)
企业可通过此接口为指定成员的客户添加上由企业统一配置的标签。
|
WxCpUserTransferCustomerResp |
resignedTransferCustomer(WxCpUserTransferCustomerReq req)
企业可通过此接口,分配离职成员的客户给其他成员。
|
WxCpUserTransferResultResp |
resignedTransferResult(String handOverUserid,
String takeOverUserid,
String cursor)
企业和第三方可通过此接口查询离职成员的客户分配情况。
|
void |
sendWelcomeMsg(WxCpWelcomeMsg msg)
发送新客户欢迎语
企业微信在向企业推送添加外部联系人事件时,会额外返回一个welcome_code,企业以此为凭据调用接口,即可通过成员向新添加的客户发送个性化的欢迎语。
|
WxCpUserTransferCustomerResp |
transferCustomer(WxCpUserTransferCustomerReq req)
企业可通过此接口,转接在职成员的客户给其他成员。
|
WxCpBaseResp |
transferExternalContact(String externalUserid,
String handOverUserid,
String takeOverUserid)
已过时。
此后续将不再更新维护, 建议使用
transferCustomer(WxCpUserTransferCustomerReq) |
WxCpUserExternalGroupChatTransferResp |
transferGroupChat(String[] chatIds,
String newOwner)
企业可通过此接口,将已离职成员为群主的群,分配给另一个客服成员。
|
WxCpUserTransferResultResp |
transferResult(String handOverUserid,
String takeOverUserid,
String cursor)
企业和第三方可通过此接口查询在职成员的客户转接情况。
|
String |
unionidToExternalUserid(String unionid,
String openid)
服务商为企业代开发微信小程序的场景,服务商可通过此接口,将微信客户的unionid转为external_userid。
|
WxCpBaseResp |
updateContactWay(@NonNull WxCpContactWayInfo info)
更新企业已配置的「联系我」方式
更新企业配置的「联系我」二维码和「联系我」小程序按钮中的信息,如使用人员和备注等。
|
void |
updateRemark(WxCpUpdateRemarkRequest request)
修改客户备注信息.
|
WxCpContactWayResult addContactWay(@NonNull @NonNull WxCpContactWayInfo info) throws WxErrorException
企业可以在管理后台-客户联系中配置成员的「联系我」的二维码或者小程序按钮,客户通过扫描二维码或点击小程序上的按钮,即可获取成员联系方式,主动联系到成员。 企业可通过此接口为具有客户联系功能的成员生成专属的「联系我」二维码或者「联系我」按钮。 如果配置的是「联系我」按钮,需要开发者的小程序接入小程序插件。 注意: 通过API添加的「联系我」不会在管理端进行展示,每个企业可通过API最多配置50万个「联系我」。 用户需要妥善存储返回的config_id,config_id丢失可能导致用户无法编辑或删除「联系我」。 临时会话模式不占用「联系我」数量,但每日最多添加10万个,并且仅支持单人。 临时会话模式的二维码,添加好友完成后该二维码即刻失效。
info - 客户联系「联系我」方式WxErrorException - the wx error exceptionWxCpContactWayInfo getContactWay(@NonNull @NonNull String configId) throws WxErrorException
批量获取企业配置的「联系我」二维码和「联系我」小程序按钮。
configId - 联系方式的配置id,必填WxErrorException - the wx error exceptionWxCpBaseResp updateContactWay(@NonNull @NonNull WxCpContactWayInfo info) throws WxErrorException
更新企业配置的「联系我」二维码和「联系我」小程序按钮中的信息,如使用人员和备注等。
info - 客户联系「联系我」方式WxErrorException - the wx error exceptionWxCpBaseResp deleteContactWay(@NonNull @NonNull String configId) throws WxErrorException
删除一个已配置的「联系我」二维码或者「联系我」小程序按钮。
configId - 企业联系方式的配置id,必填WxErrorException - the wx error exceptionWxCpBaseResp closeTempChat(@NonNull @NonNull String userId, @NonNull @NonNull String externalUserId) throws WxErrorException
将指定的企业成员和客户之前的临时会话断开,断开前会自动下发已配置的结束语。 注意:请保证传入的企业成员和客户之间有仍然有效的临时会话, 通过其他方式的添加外部联系人无法通过此接口关闭会话。
userId - the user idexternalUserId - the external user idWxErrorException - the wx error exception@Deprecated WxCpExternalContactInfo getExternalContact(String userId) throws WxErrorException
getContactDetail(String)企业可通过此接口,根据外部联系人的userid,拉取外部联系人详情。权限说明: 企业需要使用外部联系人管理secret所获取的accesstoken来调用 第三方应用需拥有“企业客户”权限。 第三方应用调用时,返回的跟进人follow_user仅包含应用可见范围之内的成员。
userId - 外部联系人的useridWxErrorException - the wx error exceptionWxCpExternalContactInfo getContactDetail(String userId) throws WxErrorException
企业可通过此接口,根据外部联系人的userid(如何获取?),拉取客户详情。 请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=ACCESS_TOKEN&external_userid=EXTERNAL_USERID 权限说明: 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?); 第三方/自建应用调用时,返回的跟进人follow_user仅包含应用可见范围之内的成员。
userId - 外部联系人的userid,注意不是企业成员的帐号WxErrorException - .String convertToOpenid(String externalUserid) throws WxErrorException
externalUserid - 微信外部联系人的useridWxErrorException - .String unionidToExternalUserid(@NotNull String unionid, String openid) throws WxErrorException
文档地址:https://work.weixin.qq.com/api/doc/90001/90143/93274 服务商代开发小程序指企业使用的小程序为企业主体的,非服务商主体的小程序。 场景:企业客户在微信端从企业主体的小程序(非服务商应用)登录,同时企业在企业微信安装了服务商的第三方应用,服务商可以调用该接口将登录用户的unionid转换为服务商全局唯一的外部联系人id 权限说明: 仅认证企业可调用 unionid必须是企业主体下的unionid。即unionid的主体(为绑定了该小程序的微信开放平台账号主体)需与当前企业的主体一致。 unionid的主体(即微信开放平台账号主体)需认证 该客户的跟进人必须在应用的可见范围之内
unionid - 微信客户的unionidWxErrorException - .WxCpExternalContactBatchInfo getContactDetailBatch(String[] userIdList, String cursor, Integer limit) throws WxErrorException
企业/第三方可通过此接口获取指定成员添加的客户信息列表。 请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/batch/get_by_user?access_token=ACCESS_TOKEN 权限说明: 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?); 第三方/自建应用调用时,返回的跟进人follow_user仅包含应用可见范围之内的成员。
userIdList - 企业成员的userid列表,注意不是外部联系人的帐号cursor - the cursorlimit - the limitWxErrorException - .void updateRemark(WxCpUpdateRemarkRequest request) throws WxErrorException
企业可通过此接口修改指定用户添加的客户的备注信息。 请求方式: POST(HTTP) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/remark?access_token=ACCESS_TOKEN 文档地址:https://work.weixin.qq.com/api/doc/90000/90135/92115
request - 备注信息请求WxErrorException - .List<String> listExternalContacts(String userId) throws WxErrorException
企业可通过此接口获取指定成员添加的客户列表。客户是指配置了客户联系功能的成员所添加的外部联系人。没有配置客户联系功能的成员,所添加的外部联系人将不会作为客户返回。 请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/list?access_token=ACCESS_TOKEN&userid=USERID 权限说明: 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?); 第三方应用需拥有“企业客户”权限。 第三方/自建应用只能获取到可见范围内的配置了客户联系功能的成员。
userId - 企业成员的useridWxErrorException - .List<String> listFollowers() throws WxErrorException
企业需要使用外部联系人管理secret所获取的accesstoken来调用(accesstoken如何获取?); 第三方应用需拥有“企业客户”权限。 第三方应用只能获取到可见范围内的配置了客户联系功能的成员
WxErrorException - .WxCpUserExternalUnassignList listUnassignedList(Integer page, Integer pageSize) throws WxErrorException
page - the pagepageSize - the page sizeWxErrorException - the wx error exception@Deprecated WxCpBaseResp transferExternalContact(String externalUserid, String handOverUserid, String takeOverUserid) throws WxErrorException
transferCustomer(WxCpUserTransferCustomerReq)externalUserid - the external useridhandOverUserid - the hand over useridtakeOverUserid - the take over useridWxErrorException - the wx error exceptionWxCpUserTransferCustomerResp transferCustomer(WxCpUserTransferCustomerReq req) throws WxErrorException
权限说明: * 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 第三方应用需拥有“企业客户权限->客户联系->在职继承”权限 接替成员必须在此第三方应用或自建应用的可见范围内。 接替成员需要配置了客户联系功能。 接替成员需要在企业微信激活且已经过实名认证。
req - 转接在职成员的客户给其他成员请求实体WxErrorException - the wx error exceptionWxCpUserTransferResultResp transferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, String cursor) throws WxErrorException
企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 第三方应用需拥有“企业客户权限->客户联系->在职继承”权限 接替成员必须在此第三方应用或自建应用的可见范围内。
handOverUserid - 原添加成员的useridtakeOverUserid - 接替成员的useridcursor - 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;WxErrorException - the wx error exceptionWxCpUserTransferCustomerResp resignedTransferCustomer(WxCpUserTransferCustomerReq req) throws WxErrorException
权限说明:
企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 第三方应用需拥有“企业客户权限->客户联系->离职分配”权限 接替成员必须在此第三方应用或自建应用的可见范围内。 接替成员需要配置了客户联系功能。 接替成员需要在企业微信激活且已经过实名认证。
req - 转接在职成员的客户给其他成员请求实体WxErrorException - the wx error exceptionWxCpUserTransferResultResp resignedTransferResult(@NotNull String handOverUserid, @NotNull String takeOverUserid, String cursor) throws WxErrorException
企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 第三方应用需拥有“企业客户权限->客户联系->在职继承”权限 接替成员必须在此第三方应用或自建应用的可见范围内。
handOverUserid - 原添加成员的useridtakeOverUserid - 接替成员的useridcursor - 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;WxErrorException - the wx error exception@Deprecated WxCpUserExternalGroupChatList listGroupChat(Integer pageIndex, Integer pageSize, int status, String[] userIds, String[] partyIds) throws WxErrorException
该接口用于获取配置过客户群管理的客户群列表。 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 暂不支持第三方调用。 微信文档:https://work.weixin.qq.com/api/doc/90000/90135/92119
pageIndex - the page indexpageSize - the page sizestatus - the statususerIds - the user idspartyIds - the party idsWxErrorException - the wx error exceptionWxCpUserExternalGroupChatList listGroupChat(Integer limit, String cursor, int status, String[] userIds) throws WxErrorException
该接口用于获取配置过客户群管理的客户群列表。 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 暂不支持第三方调用。 微信文档:https://work.weixin.qq.com/api/doc/90000/90135/92119
limit - 分页,预期请求的数据量,取值范围 1 ~ 1000cursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填status - 客户群跟进状态过滤。0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0userIds - 群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017);用户ID列表。最多100个WxErrorException - the wx error exceptionWxCpUserExternalGroupChatInfo getGroupChat(String chatId, Integer needName) throws WxErrorException
通过客户群ID,获取详情。包括群名、群成员列表、群成员入群时间、入群方式。(客户群是由具有客户群使用权限的成员创建的外部群) 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 暂不支持第三方调用。 微信文档:https://work.weixin.qq.com/api/doc/90000/90135/92122
chatId - the chat idWxErrorException - the wx error exceptionWxCpUserExternalGroupChatTransferResp transferGroupChat(String[] chatIds, String newOwner) throws WxErrorException
群主离职了的客户群,才可继承 继承给的新群主,必须是配置了客户联系功能的成员 继承给的新群主,必须有设置实名 继承给的新群主,必须有激活企业微信 同一个人的群,限制每天最多分配300个给新群主
权限说明:
企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 第三方应用需拥有“企业客户权限->客户联系->分配离职成员的客户群”权限 对于第三方/自建应用,群主必须在应用的可见范围。
chatIds - 需要转群主的客户群ID列表。取值范围: 1 ~ 100newOwner - 新群主IDWxErrorException - the wx error exceptionWxCpUserExternalUserBehaviorStatistic getUserBehaviorStatistic(Date startTime, Date endTime, String[] userIds, String[] partyIds) throws WxErrorException
企业可通过此接口获取成员联系客户的数据,包括发起申请数、新增客户数、聊天数、发送消息数和删除/拉黑成员的客户数等指标。 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 第三方应用需拥有“企业客户”权限。 第三方/自建应用调用时传入的userid和partyid要在应用的可见范围内;
startTime - the start timeendTime - the end timeuserIds - the user idspartyIds - the party idsWxErrorException - the wx error exceptionWxCpUserExternalGroupChatStatistic getGroupChatStatistic(Date startTime, Integer orderBy, Integer orderAsc, Integer pageIndex, Integer pageSize, String[] userIds, String[] partyIds) throws WxErrorException
获取指定日期全天的统计数据。注意,企业微信仅存储60天的数据。 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。 暂不支持第三方调用。
startTime - the start timeorderBy - the order byorderAsc - the order ascpageIndex - the page indexpageSize - the page sizeuserIds - the user idspartyIds - the party idsWxErrorException - the wx error exceptionWxCpMsgTemplateAddResult addMsgTemplate(WxCpMsgTemplate wxCpMsgTemplate) throws WxErrorException
请求方式: POST(HTTP)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_msg_template?access_token=ACCESS_TOKEN
文档地址:https://work.weixin.qq.com/api/doc/90000/90135/92135
wxCpMsgTemplate - the wx cp msg templateWxErrorException - the wx error exceptionvoid sendWelcomeMsg(WxCpWelcomeMsg msg) throws WxErrorException
企业微信在向企业推送添加外部联系人事件时,会额外返回一个welcome_code,企业以此为凭据调用接口,即可通过成员向新添加的客户发送个性化的欢迎语。 为了保证用户体验以及避免滥用,企业仅可在收到相关事件后20秒内调用,且只可调用一次。 如果企业已经在管理端为相关成员配置了可用的欢迎语,则推送添加外部联系人事件时不会返回welcome_code。 每次添加新客户时可能有多个企业自建应用/第三方应用收到带有welcome_code的回调事件,但仅有最先调用的可以发送成功。后续调用将返回41051(externaluser has started chatting)错误,请用户根据实际使用需求,合理设置应用可见范围,避免冲突。 请求方式: POST(HTTP) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/send_welcome_msg?access_token=ACCESS_TOKEN 文档地址:https://work.weixin.qq.com/api/doc/90000/90135/92137
msg - .WxErrorException - .WxCpUserExternalTagGroupList getCorpTagList(String[] tagId) throws WxErrorException
企业可通过此接口获取企业客户标签详情。
tagId - the tag idWxErrorException - the wx error exceptionWxCpUserExternalTagGroupList getCorpTagList(String[] tagId, String[] groupId) throws WxErrorException
企业可通过此接口获取企业客户标签详情。 若tag_id和group_id均为空,则返回所有标签。 同时传递tag_id和group_id时,忽略tag_id,仅以group_id作为过滤条件。
tagId - the tag idgroupId - the tagGroup idWxErrorException - the wx error exceptionWxCpUserExternalTagGroupInfo addCorpTag(WxCpUserExternalTagGroupInfo tagGroup) throws WxErrorException
企业可通过此接口向客户标签库中添加新的标签组和标签,每个企业最多可配置3000个企业标签。 暂不支持第三方调用。
tagGroup - the tag groupWxErrorException - the wx error exceptionWxCpBaseResp editCorpTag(String id, String name, Integer order) throws WxErrorException
企业可通过此接口编辑客户标签/标签组的名称或次序值。 暂不支持第三方调用。
id - the idname - the nameorder - the orderWxErrorException - the wx error exceptionWxCpBaseResp delCorpTag(String[] tagId, String[] groupId) throws WxErrorException
企业可通过此接口删除客户标签库中的标签,或删除整个标签组。 暂不支持第三方调用。
tagId - the tag idgroupId - the group idWxErrorException - the wx error exceptionWxCpBaseResp markTag(String userid, String externalUserid, String[] addTag, String[] removeTag) throws WxErrorException
企业可通过此接口为指定成员的客户添加上由企业统一配置的标签。 https://work.weixin.qq.com/api/doc/90000/90135/92117
userid - the useridexternalUserid - the external useridaddTag - the add tagremoveTag - the remove tagWxErrorException - the wx error exceptionWxCpAddMomentResult addMomentTask(WxCpAddMomentTask task) throws WxErrorException
企业和第三方应用可通过该接口创建客户朋友圈的发表任务。 https://open.work.weixin.qq.com/api/doc/90000/90135/95094
task - WxErrorException - the wx error exceptionWxCpGetMomentTaskResult getMomentTaskResult(String jobId) throws WxErrorException
由于发表任务的创建是异步执行的,应用需要再调用该接口以获取创建的结果。 https://open.work.weixin.qq.com/api/doc/90000/90135/95094
jobId - 异步任务id,最大长度为64字节,由创建发表内容到客户朋友圈任务接口获取WxErrorExceptionWxCpGetMomentList getMomentList(Long startTime, Long endTime, String creator, Integer filterType, String cursor, Integer limit) throws WxErrorException
获取客户朋友圈全部的发表记录 获取企业全部的发表列表 https://open.work.weixin.qq.com/api/doc/90000/90135/93333
startTime - 朋友圈记录开始时间。Unix时间戳endTime - 朋友圈记录结束时间。Unix时间戳creator - 朋友圈创建人的useridfilterType - 朋友圈类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型cursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit - 返回的最大记录数,整型,最大值100,默认值100,超过最大值时取默认值WxErrorExceptionWxCpGetMomentTask getMomentTask(String momentId, String cursor, Integer limit) throws WxErrorException
获取客户朋友圈全部的发表记录 获取客户朋友圈企业发表的列表 https://open.work.weixin.qq.com/api/doc/90000/90135/93333
momentId - 朋友圈id,仅支持企业发表的朋友圈idcursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit - 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值WxErrorExceptionWxCpGetMomentCustomerList getMomentCustomerList(String momentId, String userId, String cursor, Integer limit) throws WxErrorException
获取客户朋友圈全部的发表记录 获取客户朋友圈发表时选择的可见范围 https://open.work.weixin.qq.com/api/doc/90000/90135/93333
momentId - 朋友圈iduserId - 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的
列表获取已发表成员userid,如果是个人创建的朋友圈,创建人userid就是企业发表成员useridcursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit - 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值WxErrorExceptionWxCpGetMomentSendResult getMomentSendResult(String momentId, String userId, String cursor, Integer limit) throws WxErrorException
获取客户朋友圈全部的发表记录 获取客户朋友圈发表后的可见客户列表 https://open.work.weixin.qq.com/api/doc/90000/90135/93333
momentId - 朋友圈iduserId - 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid,
如果是个人创建的朋友圈,创建人userid就是企业发表成员useridcursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit - 返回的最大记录数,整型,最大值5000,默认值3000,超过最大值时取默认值WxErrorExceptionWxCpGetMomentComments getMomentComments(String momentId, String userId) throws WxErrorException
获取客户朋友圈全部的发表记录 获取客户朋友圈的互动数据 https://open.work.weixin.qq.com/api/doc/90000/90135/93333
momentId - 朋友圈iduserId - 企业发表成员userid,如果是企业创建的朋友圈,可以通过获取客户朋友圈企业发表的列表获取已发表成员userid,
如果是个人创建的朋友圈,创建人userid就是企业发表成员useridWxErrorExceptionWxCpGroupMsgListResult getGroupMsgListV2(String chatType, @NonNull @NonNull Date startTime, @NonNull @NonNull Date endTime, String creator, Integer filterType, Integer limit, String cursor) throws WxErrorException
企业和第三方应用可通过此接口获取企业与成员的群发记录。 https://work.weixin.qq.com/api/doc/90000/90135/93338
chatType - 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群startTime - 群发任务记录开始时间endTime - 群发任务记录结束时间creator - 群发任务创建人企业账号idfilterType - 创建人类型。0:企业发表 1:个人发表 2:所有,包括个人创建以及企业创建,默认情况下为所有类型limit - 返回的最大记录数,整型,最大值100,默认值50,超过最大值时取默认值cursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填WxErrorException - the wx error exceptionWxCpGroupMsgSendResult getGroupMsgSendResult(String msgid, String userid, Integer limit, String cursor) throws WxErrorException
企业和第三方应用可通过此接口获取企业与成员的群发记录。 https://work.weixin.qq.com/api/doc/90000/90135/93338#获取企业群发成员执行结果
msgid - 群发消息的id,通过获取群发记录列表接口返回userid - 发送成员userid,通过获取群发成员发送任务列表接口返回limit - 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值cursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填WxErrorException - the wx error exceptionWxCpGroupMsgTaskResult getGroupMsgTask(String msgid, Integer limit, String cursor) throws WxErrorException
获取群发成员发送任务列表。 https://work.weixin.qq.com/api/doc/90000/90135/93338#获取群发成员发送任务列表
msgid - 群发消息的id,通过获取群发记录列表接口返回limit - 返回的最大记录数,整型,最大值1000,默认值500,超过最大值时取默认值cursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填WxErrorException - the wx error exceptionCopyright © 2021. All rights reserved.