public interface MomentApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<GenericResponse<String>> |
addMomentTask(MomentBody<MomentAttachment> body)
创建发表任务
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
cancelMomentTask(MomentId momentId)
停止发表企业朋友圈
|
io.reactivex.rxjava3.core.Single<GenericResponse<Integer>> |
createMomentStrategy(CustomerStrategyRequest request)
创建新的规则组
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
delMomentStrategy(StrategyId strategyId)
删除规则组
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
editMomentStrategy(MutableMomentStrategy request)
编辑规则组及其管理范围
|
io.reactivex.rxjava3.core.Single<MomentCommentResponse> |
getMomentComments(UserMoment userId)
获取客户朋友圈的互动数据
|
io.reactivex.rxjava3.core.Single<MomentCustomerListResponse> |
getMomentCustomerList(MomentInfoRequest request)
获取客户朋友圈发表时选择的可见范围
|
io.reactivex.rxjava3.core.Single<MomentListResponse> |
getMomentList(MomentListRequest request)
获取企业全部的发表列表
|
io.reactivex.rxjava3.core.Single<MomentCustomerListResponse> |
getMomentSendResult(MomentInfoRequest request)
获取客户朋友圈发表后的可见客户列表
|
io.reactivex.rxjava3.core.Single<MomentStrategyDetailResponse> |
getMomentStrategy(StrategyId strategyId)
获取规则组详情
|
io.reactivex.rxjava3.core.Single<StrategyRangeResponse> |
getMomentStrategyRange(StrategyRangeRequest request)
获取规则组管理范围
|
io.reactivex.rxjava3.core.Single<MomentMemberTaskResponse> |
getMomentTask(MomentTaskRequest request)
获取客户朋友圈企业发表的列表
|
io.reactivex.rxjava3.core.Single<MomentTaskResultResponse> |
getMomentTaskResult(String jobId)
获取任务创建结果
|
io.reactivex.rxjava3.core.Single<StrategyListResponse> |
momentStrategyList(PageRequest request)
获取规则组列表
|
@POST(value="externalcontact/add_moment_task") io.reactivex.rxjava3.core.Single<GenericResponse<String>> addMomentTask(@Body MomentBody<MomentAttachment> body)
body - the body@GET(value="externalcontact/get_moment_task_result") io.reactivex.rxjava3.core.Single<MomentTaskResultResponse> getMomentTaskResult(@Query(value="jobid") String jobId)
jobId - the job id@POST(value="externalcontact/get_moment_list") io.reactivex.rxjava3.core.Single<MomentListResponse> getMomentList(@Body MomentListRequest request)
request - the request@POST(value="externalcontact/get_moment_task") io.reactivex.rxjava3.core.Single<MomentMemberTaskResponse> getMomentTask(@Body MomentTaskRequest request)
request - the request@POST(value="externalcontact/get_moment_customer_list") io.reactivex.rxjava3.core.Single<MomentCustomerListResponse> getMomentCustomerList(@Body MomentInfoRequest request)
指用户发表时指定了哪些客户可收
request - the request@POST(value="externalcontact/get_moment_send_result") io.reactivex.rxjava3.core.Single<MomentCustomerListResponse> getMomentSendResult(@Body MomentInfoRequest request)
指哪些客户真正可以看到
request - the request@POST(value="externalcontact/cancel_moment_task") io.reactivex.rxjava3.core.Single<WeComResponse> cancelMomentTask(@Body MomentId momentId)
momentId - the moment id@POST(value="externalcontact/get_moment_comments") io.reactivex.rxjava3.core.Single<MomentCommentResponse> getMomentComments(@Body UserMoment userId)
优化了企业微信给的数据结构
userId - the user id@POST(value="externalcontact/moment_strategy/list") io.reactivex.rxjava3.core.Single<StrategyListResponse> momentStrategyList(@Body PageRequest request)
request - the request@POST(value="externalcontact/moment_strategy/get") io.reactivex.rxjava3.core.Single<MomentStrategyDetailResponse> getMomentStrategy(@Body StrategyId strategyId)
strategyId - the strategy id@POST(value="externalcontact/moment_strategy/get_range") io.reactivex.rxjava3.core.Single<StrategyRangeResponse> getMomentStrategyRange(@Body StrategyRangeRequest request)
request - the request@POST(value="externalcontact/moment_strategy/create") io.reactivex.rxjava3.core.Single<GenericResponse<Integer>> createMomentStrategy(@Body CustomerStrategyRequest request)
request - the request@POST(value="externalcontact/moment_strategy/edit") io.reactivex.rxjava3.core.Single<WeComResponse> editMomentStrategy(@Body MutableMomentStrategy request)
request - the request@POST(value="externalcontact/moment_strategy/del") io.reactivex.rxjava3.core.Single<WeComResponse> delMomentStrategy(@Body StrategyId strategyId)
strategyId - the strategy idCopyright © 2023. All rights reserved.