(以内容“== 登录 == === 显示验证页面 === : '''GET''' /auth/auth {| class="wikitable" |- ! Parameter !! Type !! Description !! Optional !! Choices |- | redirect_uri || s...”创建新页面)
 
第31行: 第31行:
 
| client_secret || string || Client secret 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

2012年2月9日 (四) 00:47的版本

登录

显示验证页面

GET /auth/auth
Parameter Type Description Optional Choices
redirect_uri string Redirection URI No displaycode
response_type string ID of the first post to list 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