跳到主要内容

功能说明​

创建一个公众号频道

请求说明​

请求鉴权:接口需要增加验证 Header,请查看 鉴权说明

请求类型:POST

请求限频:100次/秒

请求地址:https://请求域名/apigateway/publicchannel/create

Content-Type:application/json

请求参数​

参数数据类型是否必填参数说明
channel_idstring是公众号id;最多 32 个字符
channel_namestring否公众号昵称;最多 100 个字符
channel_portraitstring否公众号头像;最多 200 个字符
creator_idstring否创建者用户id;最多 32 个字符

请求示例​

POST /apigateway/publicchannel/create HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

{
"channel_id":"channel1",
"channel_name":"publicchannel",
"channel_portrait":"https://xxxxxx.jpg",
"creator_id":"userid1"
}

响应示例​

{
"code":0,
"msg":"sucess"
}