1.
2.token
(1)
(2)
Token POST http://10.62.163.111:8882/v1/Oauth/token
POST
http://10.62.163.111:8882/v1/Oauth/token
:
:
client_id | string | Y | No1sX01PbbnLw | |
client_secret | string | Y | 2394fb0d9faa24b72902443831667d0d | |
grant_type | string | Y | client_credentials |
:
{ "client_id": "No1sX01PbbnLw", "client_secret": "2394fb0d9faa24b72902443831667d0d", "grant_type": "client_credentials" }
:
code | integer | 0 | |
msg | string | success | |
token | string | 93f3f23557c6c25d76bffead16c82aebbb3d77ee104b507e38919695897a2531 | |
expires_in | integer | 5224 | |
refresh_token | string | 9e5bb4dff226e4d656d3467ca4eb882fe3379d00d5cea77c35c5aabf79d8b56d |
:
{ "code": 0, "msg": "success", "token": "93f3f23557c6c25d76bffead16c82aebbb3d77ee104b507e38919695897a2531", "expires_in": 5224, "refresh_token": "9e5bb4dff226e4d656d3467ca4eb882fe3379d00d5cea77c35c5aabf79d8b56d" }
3.
POST http://10.62.163.111:8882/v1/Oauth/token
POST
http://10.62.163.111:8882/v1/Oauth/token
:
:
refresh_token | string | Y | refresh_token | 12943601459cc83edfadddc1d65d258b7f8c9adeadf10 |
grant_type | string | Y | refresh_token | refresh_token |
:
{ "refresh_token": "12943601459cc83edfadddc1d65d258b7f8c9adeadf10", "grant_type": "refresh_token" }
:
access_token | string | eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 | |
expires_in | int | 7200 | |
refresh_token | string | 12943601459cc83edfadddc1d65d258b7f8c9adeadf10 |
:
{ "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9", "expires_in": "7200", "refresh_token": "12943601459cc83edfadddc1d65d258b7f8c9adeadf10" }
4.
:
GET、POST、PUT、PATCH、DELETE。:
Request Header:
Content-Type | String | Y | application/json | MIME Content Type. |
Authorization | String | Y | Bearer <token> | Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 |