- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
创建预约直播
POST
http://127.0.0.1/cgi-bin/living/create
第三方应用开发/效率工具/直播
最后修改时间:2022-08-30 03:03:37
责任人:未设置
原文档地址:
https://open.work.weixin.qq.com/api/doc/90001/90143/93717
https://open.work.weixin.qq.com/api/doc/90000/90135/93637
请求参数
Query 参数
access_token
string
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
agentid
integer <int32>
可选
remind_time
integer <int32>
可选
activity_cover_mediaid
string
可选
living_start
integer <int32>
必需
description
string
可选
activity_detail
object
可选
description
string
可选
image_list
array[string]
可选
theme
string
必需
activity_share_mediaid
string
可选
type
integer <int32>
可选
anchor_userid
string
必需
living_duration
integer <int32>
直播持续时长
示例
{
"anchor_userid": "zhangsan",
"theme": "theme",
"living_start": 1600000000,
"living_duration": 3600,
"description": "testdescription",
"type": 4,
"agentid": 1000014,
"remind_time": 60,
"activity_cover_mediaid": "MEDIA_ID",
"activity_share_mediaid": "MEDIA_ID",
"activity_detail": {
"description": "活动描述,非活动类型的直播不用传",
"image_list": [
"MEDIA_ID_1",
"MEDIA_ID_2"
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1/cgi-bin/living/create?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"anchor_userid": "zhangsan",
"theme": "theme",
"living_start": 1600000000,
"living_duration": 3600,
"description": "testdescription",
"type": 4,
"agentid": 1000014,
"remind_time": 60,
"activity_cover_mediaid": "MEDIA_ID",
"activity_share_mediaid": "MEDIA_ID",
"activity_detail": {
"description": "活动描述,非活动类型的直播不用传",
"image_list": [
"MEDIA_ID_1",
"MEDIA_ID_2"
]
}
}'
返回响应
🟢200成功
application/json
Body
errcode
integer <int32>
返回码
livingid
string
可选
errmsg
string
可选
示例
{
"errcode": 0,
"livingid": "string",
"errmsg": "string"
}

修改于 2022-08-30 03:03:37