public class WxCpLivingServiceImpl extends Object implements WxCpLivingService
构造器和说明 |
---|
WxCpLivingServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
WxCpLivingResult |
deleteReplayData(@NonNull String livingId)
删除直播回放
请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/delete_replay_data?
|
String |
getLivingCode(String openId,
String livingId)
获取微信观看直播凭证
请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/get_living_code?
|
WxCpLivingInfo |
getLivingInfo(String livingId)
获取直播详情
请求方式:GET(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_living_info?
|
WxCpLivingShareInfo |
getLivingShareInfo(String wwShareCode)
获取跳转小程序商城的直播观众信息
通过此接口,开发者可获取跳转小程序商城的直播间(“推广产品”直播)观众id、邀请人id及对应直播间id,以打通卖货直播的“人货场”信息闭环。
|
WxCpLivingResult.LivingIdResult |
getUserAllLivingId(String userId,
String cursor,
Integer limit)
获取成员直播ID列表
通过此接口可以获取指定成员的所有直播ID
请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?
|
WxCpWatchStat |
getWatchStat(String livingId,
String nextKey)
获取直播观看明细
通过该接口可以获取所有观看直播的人员统计
请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_watch_stat?
|
WxCpLivingResult |
livingCancel(@NonNull String livingId)
取消预约直播
请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/cancel?
|
String |
livingCreate(WxCpLivingCreateRequest request)
创建预约直播
请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/create?
|
WxCpLivingResult |
livingModify(WxCpLivingModifyRequest request)
修改预约直播
请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/living/modify?
|
public String getLivingCode(String openId, String livingId) throws WxErrorException
WxCpLivingService
getLivingCode
在接口中 WxCpLivingService
openId
- 用户openidlivingId
- 直播idWxErrorException
- the wx error exceptionpublic WxCpLivingInfo getLivingInfo(String livingId) throws WxErrorException
WxCpLivingService
getLivingInfo
在接口中 WxCpLivingService
livingId
- 直播idWxErrorException
- the wx error exceptionpublic WxCpWatchStat getWatchStat(String livingId, String nextKey) throws WxErrorException
WxCpLivingService
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_watch_stat?access_token=ACCESS_TOKEN
getWatchStat
在接口中 WxCpLivingService
livingId
- 直播idnextKey
- 上一次调用时返回的next_key,初次调用可以填”0”WxErrorException
- the wx error exceptionpublic WxCpLivingResult.LivingIdResult getUserAllLivingId(String userId, String cursor, Integer limit) throws WxErrorException
WxCpLivingService
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?access_token=ACCESS_TOKEN
getUserAllLivingId
在接口中 WxCpLivingService
userId
- 企业成员的useridcursor
- 上一次调用时返回的next_cursor,第一次拉取可以不填limit
- 每次拉取的数据量,默认值和最大值都为100WxErrorException
- the wx error exceptionpublic WxCpLivingShareInfo getLivingShareInfo(String wwShareCode) throws WxErrorException
WxCpLivingService
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/living/get_living_share_info?access_token=ACCESS_TOKEN
getLivingShareInfo
在接口中 WxCpLivingService
wwShareCode
- "推广产品"直播观众跳转小程序商城时会在小程序path中带上ww_share_code=xxxxx参数WxErrorException
- the wx error exceptionpublic String livingCreate(WxCpLivingCreateRequest request) throws WxErrorException
WxCpLivingService
livingCreate
在接口中 WxCpLivingService
request
- 创建预约直播请求参数.WxErrorException
- the wx error exceptionpublic WxCpLivingResult livingModify(WxCpLivingModifyRequest request) throws WxErrorException
WxCpLivingService
livingModify
在接口中 WxCpLivingService
request
- 修改预约直播请求参数.WxErrorException
- the wx error exceptionpublic WxCpLivingResult livingCancel(@NonNull @NonNull String livingId) throws WxErrorException
WxCpLivingService
livingCancel
在接口中 WxCpLivingService
livingId
- 直播id,仅允许取消预约状态下的直播idWxErrorException
- the wx error exceptionpublic WxCpLivingResult deleteReplayData(@NonNull @NonNull String livingId) throws WxErrorException
WxCpLivingService
deleteReplayData
在接口中 WxCpLivingService
livingId
- 直播idWxErrorException
- the wx error exceptionCopyright © 2024. All rights reserved.