public interface ExternalContactUserApi
@GET(value="externalcontact/list") GenericResponse<List<String>> listByUserId(@Query(value="userid") String userId) throws WeComException
userId
- the user idWeComException
- the weComException@GET(value="externalcontact/get") ExternalUserDetailResponse getByExUserId(@Query(value="external_userid") String externalUserid, @Query(value="cursor") String cursor) throws WeComException
externalUserid
- the external useridcursor
- the cursorWeComException
- the weComException@POST(value="externalcontact/batch/get_by_user") ExternalUserListDetailResponse batchByUserIds(@Body ExternalUserListDetailRequest request) throws WeComException
request
- the requestWeComException
- the weComException@POST(value="externalcontact/remark") WeComResponse remark(@Body CustomerRemarkRequest request) throws WeComException
request
- the requestWeComException
- the weComException@POST(value="externalcontact/customer_strategy/list") StrategyListResponse customerStrategyList(@Body PageRequest request) throws WeComException
request
- the requestWeComException
- the weComException@POST(value="externalcontact/customer_strategy/get") CustomerStrategyDetailResponse getCustomerStrategy(@Body StrategyId strategyId) throws WeComException
strategyId
- the strategy idWeComException
- the weComException@POST(value="externalcontact/customer_strategy/get_range") StrategyRangeResponse getCustomerStrategyRange(@Body StrategyRangeRequest request) throws WeComException
request
- the requestWeComException
- the weComException@POST(value="externalcontact/customer_strategy/create") GenericResponse<Integer> createCustomerStrategy(@Body CustomerStrategyRequest request) throws WeComException
request
- the requestWeComException
- the weComException@POST(value="externalcontact/customer_strategy/edit") WeComResponse editCustomerStrategy(@Body MutableCustomerStrategy request) throws WeComException
request
- the requestWeComException
- the weComException@POST(value="externalcontact/customer_strategy/del") WeComResponse delCustomerStrategy(@Body StrategyId strategyId) throws WeComException
strategyId
- the strategy idWeComException
- the weComException@POST(value="externalcontact/convert_to_openid") GenericResponse<String> convertToOpenid(@Body ExternalUserId externalUserId) throws WeComException
企业和服务商可通过此接口,将微信外部联系人的userid(如何获取?)转为微信openid,用于调用支付相关接口。 暂不支持企业微信外部联系人(ExternalUserid为wo开头)的userid转openid。
externalUserId
- the external user idWeComException
- the weComException@POST(value="externalcontact/contact_list") ContractListResponse contactList(@Body PageRequest request) throws WeComException
企业可通过此接口获取所有已服务的外部联系人,及其添加人和加入的群聊。 外部联系人分为客户和其他外部联系人,如果是客户,接口将返回外部联系人临时ID和externaluserid; 如果是其他外部联系人,接口将只返回外部联系人临时ID。
企业可通过外部联系人临时ID排除重复数据,外部联系人临时ID有效期为4小时。
request
- cursor具有有效期,请勿缓存后使用WeComException
- the we com exceptionCopyright © 2025. All rights reserved.