第15行: 第15行:
  
 
=== 获取Token ===
 
=== 获取Token ===
: '''GET''' /auth/token
+
: '''GET/POST''' /auth/token
  
 
{| class="wikitable"
 
{| class="wikitable"

2012年9月13日 (四) 22:31的版本

登录

显示验证页面

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/POST /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