获取第三方平台 component_access_token
第三方平台 component_access_token 是第三方平台的接口调用凭据,也叫做令牌。每个令牌有效期是 2 小时,请第三方平台做好令牌的管理,在令牌过期之前进行刷新。
请求地址:
GET https://open.microapp.bytedance.com/openapi/v1/auth/tp/token
Query 参数:
参数名 | 参数类型 | 是否必须 | 备注 |
---|---|---|---|
component_appid | string | 是 | 第三方平台的 appid |
component_appsecret | string | 是 | 第三方平台的 appsecret |
component_ticket | string | 是 | 推送的 component_ticket |
返回值:
参数名 | 参数类型 | 备注 |
---|---|---|
component_access_token | string | 第三方平台 access_token |
expires_in | int | 有效期,单位:秒 |
返回值示例
{
"component_access_token": "xxx",
"expires_in": 7200
}
点击纠错
评价此篇文档