获取AccessToken
GET
/oauth/access2
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http:///oauth/access2' \
--header 'client_id;' \
--header 'redirect_uri;' \
--header 'client_secret;' \
--header 'grant_type;' \
--header 'code;'
响应示例响应示例
{
"accessToken": "b43de33483491bc86090d6a707d6c3d3"
}
请求参数
Header 参数
client_id
string
必需
默认值:
{{client_id}}
redirect_uri
string
必需
默认值:
{{redirect_uri}}
client_secret
string
必需
默认值:
{{client_secret}}
grant_type
string
必需
默认值:
authorization_code
code
string
必需
默认值:
{{code}}