获取 Authorization Code
开发环境
开发环境
GET
https://developers.e.qq.com/oauth/authorize
使用说明
1.
2.
请求示例
在浏览器访问页面https://developers.e.qq.com/oauth/authorize?client_id=<CLIENT_ID>&redirect_uri=https://www.example.com/response&state=<STATE>&scope=<SCOPE>
应答字段
应答示例
系统跳转至 redirect_uri 对应的系统或页面,同时携带 authorization_code(有效期 5 分钟)和 state 两个参数
形如:https://www.example.com/response?authorization_code=<AUTHORIZATION_CODE>&state=<STATE>
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://developers.e.qq.com/oauth/authorize' \
--header 'access_token;' \
--header 'timestamp;' \
--header 'nonce;' \
--header 'fields;' \
--header 'Content-Type: application/json' \
--data-raw '{}'
响应示例响应示例
{}
请求参数
Header 参数
access_token
string
必需
默认值:
<ACCESS_TOKEN>
timestamp
string
必需
MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳
MarketingAPI 所使用的时区为GMT+8,例如当时间戳为1494840119时,表示 2018-05-15 17:21:59
默认值:
<TIMESTAMP>
nonce
string
必需
默认值:
<NONCE>
fields
string
必需
Body 参数application/json
返回响应
修改于 2023-11-01 03:35:49