AccessToken
POST
/oauth/token3PP exchanges the authorization code for an access token and refresh token.
After 3PP gets authorization code, they need to exchange the authorization token for an access token and refresh token.
请求参数
Query Params
client_id
string
required
The ID of 3PP offered by OC offline
grant_type
string
required
Fixed value: "authorization_code"
redirect_uri
string
required
To prevent attack, OC validates value of this field against the redirect URL that was used when requesting the authorization code. The two redirect URLs should be the same.
code
string
required
Value of authorization code
示例代码
Responses
OK(200)
Created(201)
Unauthorized(401)
Forbidden(403)
Not Found(404)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 1 年前