public interface UpStreamApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<GenericResponse<List<PendingExUser>>> |
externalUseridToPendingId(ExPendingIdRequest request)
external_userid查询pending_id (上游专用)
调用该接口的应用必须是上下游共享的自建应用或代开发应用
应用需要具有客户联系权限
该客户的跟进人或其所在客户群群主必须在应用的可见范围之内
上游应用须调用过
unionidToPendingId(UnionPendingIdRequest)
上游和下游企业须认证或验证;若为代开发应用,服务商必须已认证
|
io.reactivex.rxjava3.core.Single<GenericResponse<String>> |
getChainCorpinfo(ChainContactRequest request)
提交批量导入上下游联系人任务
仅已验证的企业可调用
仅上下游系统应用可调用
同时只能存在一个导入任务。导入任务包括通过API提交的任务和从管理后台提交的导入任务。
|
io.reactivex.rxjava3.core.Single<ChainCorpDetailResponse> |
getChainCorpinfo(ChainCorpDetailRequest request)
获取企业上下游通讯录下的企业信息
|
io.reactivex.rxjava3.core.Single<GroupCorpsResponse> |
getChainCorpinfoList(ChainGroupInfoRequest request)
获取企业上下游通讯录分组下的企业详情列表
|
io.reactivex.rxjava3.core.Single<GenericResponse<List<ChainGroup>>> |
getChainGroup(ChainGroupRequest request)
获取上下游通讯录分组
|
io.reactivex.rxjava3.core.Single<GenericResponse<List<ChainCorp>>> |
getChainList()
获取上下游列表
自建应用/代开发应用可调用,仅返回应用可见范围内的上下游列表
上下游系统应用可调用,返回全部的上下游列表
|
io.reactivex.rxjava3.core.Single<GenericResponse<List<ChainCorp>>> |
getChainUserCustomId(CorpId corpId)
获取下级企业加入的上下游
|
io.reactivex.rxjava3.core.Single<GenericResponse<String>> |
getChainUserCustomId(CorpInUser user)
查询成员自定义id
|
io.reactivex.rxjava3.core.Single<JobResultResponse> |
getResult(String jobId)
获取异步任务结果
|
io.reactivex.rxjava3.core.Single<ShareInfoResponse> |
listAppShareInfo(ShareInfoRequest request)
获取应用共享信息
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
removeCorp(ChainCorpDetailRequest request)
移除企业
|
io.reactivex.rxjava3.core.Single<GenericResponse<List<CorpExUser>>> |
unionidToExternalUserid(CorpExUserRequest request)
上下游关联客户信息-已添加客户
|
io.reactivex.rxjava3.core.Single<GenericResponse<String>> |
unionidToPendingId(UnionPendingIdRequest request)
unionid查询pending_id
|
@POST(value="corpgroup/corp/list_app_share_info") io.reactivex.rxjava3.core.Single<ShareInfoResponse> listAppShareInfo(@Body ShareInfoRequest request)
局校互联中的局端或者上下游中的上游企业通过该接口可以获取某个应用分享给的所有企业列表。 特别注意,对于有敏感权限的应用,需要下级/下游企业确认后才能共享成功,若下级/下游企业未确认,则不会存在于该接口的返回列表
request - the request@POST(value="corpgroup/unionid_to_external_userid") io.reactivex.rxjava3.core.Single<GenericResponse<List<CorpExUser>>> unionidToExternalUserid(@Body CorpExUserRequest request)
场景:品牌在公众号、小程序上的微信粉丝,可以跟经销商用企微添加的微信客户打通数据
实现效果:共享客户信息,完善客户画像,促进成交
准备工作
request - the request@POST(value="corpgroup/unionid_to_pending_id") io.reactivex.rxjava3.core.Single<GenericResponse<String>> unionidToPendingId(@Body UnionPendingIdRequest request)
该接口有调用频率限制,按上游企业维度,限制为:10万次/小时、48万次/天、750万次/月。
request - the request@POST(value="corpgroup/batch/external_userid_to_pending_id") io.reactivex.rxjava3.core.Single<GenericResponse<List<PendingExUser>>> externalUseridToPendingId(@Body ExPendingIdRequest request)
unionidToPendingId(UnionPendingIdRequest)request - the request下游专用@GET(value="corpgroup/corp/get_chain_list") io.reactivex.rxjava3.core.Single<GenericResponse<List<ChainCorp>>> getChainList()
@POST(value="corpgroup/corp/get_chain_group") io.reactivex.rxjava3.core.Single<GenericResponse<List<ChainGroup>>> getChainGroup(@Body ChainGroupRequest request)
自建应用/代开发应用和上下游系统应用可通过该接口获取企业上下游通讯录分组详情
request - the request@POST(value="corpgroup/corp/get_chain_corpinfo_list") io.reactivex.rxjava3.core.Single<GroupCorpsResponse> getChainCorpinfoList(@Body ChainGroupInfoRequest request)
自建应用/代开发应用和上下游系统应用可通过该接口获取企业上下游通讯录的某个分组下的企业列表
如需获取该分组及其子分组的所有企业详情,需先获取该分组下的所有子分组,然后再获取子分组下的企业,逐层递归获取。
request - the request@POST(value="corpgroup/corp/get_chain_corpinfo") io.reactivex.rxjava3.core.Single<ChainCorpDetailResponse> getChainCorpinfo(@Body ChainCorpDetailRequest request)
自建应用/代开发应用和上下游系统应用可通过该接口获取企业上下游通讯录的某个企业的自定义id和所属分组的分组id
request - the request@POST(value="corpgroup/import_chain_contact") io.reactivex.rxjava3.core.Single<GenericResponse<String>> getChainCorpinfo(@Body ChainContactRequest request)
request - the request@GET(value="corpgroup/getresult") io.reactivex.rxjava3.core.Single<JobResultResponse> getResult(@Query(value="jobid") String jobId)
只能查询已经提交过的历史任务。
并发限制:5
jobId - the job id@POST(value="corpgroup/corp/remove_corp") io.reactivex.rxjava3.core.Single<WeComResponse> removeCorp(@Body ChainCorpDetailRequest request)
上级/上游企业通过该接口移除下游企业
request - the request@POST(value="corpgroup/corp/get_chain_user_custom_id") io.reactivex.rxjava3.core.Single<GenericResponse<String>> getChainUserCustomId(@Body CorpInUser user)
上级企业自建应用/代开发应用通过本接口查询成员自定义 id
自建应用、代开发应用和「上下游」原生应用可调用,仅可指定应用可见范围内的企业
user - the user@POST(value="corpgroup/corp/get_chain_user_custom_id") io.reactivex.rxjava3.core.Single<GenericResponse<List<ChainCorp>>> getChainUserCustomId(@Body CorpId corpId)
上级企业自建应用/代开发应用通过本接口查询下级企业所在上下游
自建应用、代开发应用和「上下游」原生应用可调用,仅可指定应用可见范围内的企业
corpId - the corp idCopyright © 2024. All rights reserved.