角色授权小程序
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://developer.toutiao.com/auth/entity/auth_role
接口说明
注意事项
基本信息
基本 | |
---|---|
HTTP URL | 正式环境:https://developer.toutiao.com/auth/entity/auth_role 沙盒环境:https://open-sandbox.douyin.com/auth/entity/auth_role |
HTTP Method | POST |
权限要求 | AccessToken鉴权 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://developer.toutiao.com/auth/entity/auth_role' \
--header 'Aweme-Check-Type;' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "tt427e34c3dd07777601",
"access_token": "080112184630xxx947774a45363371682f48762f4c67326974513d3d",
"partner_entity_id": "E_7208933888470106156",
"merchant_entity_id": "E_7208933889593688108",
"industry_code": 10000,
"auth_letters": [
{
"material_type": 1006,
"material_expiretime": "2033-01-01",
"material_paths": [
"certification/resource/c1bb104b7a84fb40e58f89a91cf19b22"
]
}
],
"scope": 2,
"nick": "哈哈哈",
"icon": "certification/resource/c1bb104b7a84fb40e58f89a91cf19b22",
"desc": "哈哈",
"merchant_industry_role": 2
}'
响应示例响应示例
{
"bind_taskid": "string",
"err": {
"err_code": 0,
"err_msg": "string"
}
}
请求参数
Header 参数
Content-Type
string
必需
Aweme-Check-Type
string
可选
Body 参数application/json