get oauth access_token
get oauth access Token, based on authorization code or refresh_ Token
Header Parameters
- Content-Type required
application/json
- application/json
Request Body
- client_id string
Application Client Id
- client_secret string
Application client key
- code string
Oauth authorization code (non empty when using authorization code to obtain token)
- grant_type string
grant_type value:refresh_token(Use refresh_ Token must be passed when refreshing a token)
- refresh_token string
refresh_token(Use refresh_ Token must be passed when refreshing a token)
Responses
- 200
- 403
- 404
- responseBody
create tokenSuccess
Forbidden
resouce not found
- application/json
- Schema
Schema
- access_token string
access_token。
- expires_in long
access_token expire time(timestamp:ms)
- refresh_token string
refresh_token
- refresh_token_expires_in long
refresh_token expire time(timestamp:ms)
Loading...