第9行: 第9行:
 
| redirect_uri || string || Redirection URI || No || displaycode
 
| redirect_uri || string || Redirection URI || No || displaycode
 
|-
 
|-
| response_type || string || ID of the first post to list || No || code
+
| response_type || string || Preferred response type || No || code
 
|-
 
|-
 
| client_id || string || Client ID of the client application || No
 
| client_id || string || Client ID of the client application || No

2012年9月13日 (四) 17:34的版本

登录

显示验证页面

GET /auth/auth
Parameter Type Description Optional Choices
redirect_uri string Redirection URI No displaycode
response_type string Preferred response type No code
client_id string Client ID of the client application No

获取Token

GET /auth/token
Parameter Type Description Optional Choices
code string Authorization code No
redirect_uri string Redirection URI, should match with previous requests No
grant_type string Type of object to exchange token with No authorization_code
client_id string Client ID of the client application No
client_secret string Client secret of the client application No
  • Return value
    • Success: {"access_token": <string: Token>, "token_type": <string: Token type>}
    • Failure: various HTTP error code