小程序绑定角色
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://developer.toutiao.com/auth/entity/bind_role
接口说明
注意事项
基本信息
基本 | |
---|---|
HTTP URL | 正式环境:https://developer.toutiao.com/auth/entity/bind_role 沙盒环境:https://open-sandbox.douyin.com/auth/entity/bind_role |
HTTP Method | POST |
权限要求 | AccessToken鉴权 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://developer.toutiao.com/auth/entity/bind_role' \
--header 'Aweme-Check-Type;' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "ttb7acc1112xxx277d01",
"access_token": "0801121846307a677xxx634338303473326e3573324c4d5779673d3d",
"merchant_entity_id": "E_71802667xxx55304249",
"industry_code": 10000,
"merchant_industry_role": 3
}'
响应示例响应示例
{
"err": {
"err_code": 0,
"err_msg": "string"
}
}
请求参数
Header 参数
Content-Type
string
必需
Aweme-Check-Type
string
可选
Body 参数application/json