Skip to content

直播

enter_live_room

进入直播间。

python
wechat.enter_live_room(client_id, object_id, live_id, object_nonce_id, timeout=None)
参数类型说明
client_idint客户端ID
object_idstr对象ID
live_idstr直播间ID
object_nonce_idstrNonce ID
timeoutint超时时间(秒)

get_live_room_updates

获取直播间变动信息。

python
wechat.get_live_room_updates(client_id, timeout=None)
参数类型说明
client_idint客户端ID
timeoutint超时时间(秒)

speak_in_live_room

直播间发言。

python
wechat.speak_in_live_room(client_id, content, timeout=None)
参数类型说明
client_idint客户端ID
contentstr发言内容
timeoutint超时时间(秒)

get_live_room_online_users

获取直播间在线人员。

python
wechat.get_live_room_online_users(client_id, object_id, live_id, object_nonce_id, timeout=None)
参数类型说明
client_idint客户端ID
object_idstr对象ID
live_idstr直播间ID
object_nonce_idstrNonce ID
timeoutint超时时间(秒)

like_in_live_room

直播间点赞。

python
wechat.like_in_live_room(client_id, count, timeout=None)
参数类型说明
client_idint客户端ID
countint点赞次数
timeoutint超时时间(秒)

get_live_room_shelves

获取直播间货架。

python
wechat.get_live_room_shelves(client_id, timeout=None)
参数类型说明
client_idint客户端ID
timeoutint超时时间(秒)

get_shelf_product_detail

获取货架商品详细信息。

python
wechat.get_shelf_product_detail(client_id, product_id, timeout=None)
参数类型说明
client_idint客户端ID
product_idstr商品ID
timeoutint超时时间(秒)

基于 MIT 许可证发布