2/oauth2/access token/en

跳转到: 导航, 搜索

oauth2/access_token

Access_token interface of OAuth2.

URL

https://api.weibo.com/oauth2/access_token

HTTP Request Method

POST

Request Parameters

  Requires Type and Range Description
client_id true string AppKey created when an application is created.
client_secret true string AppSecret created when an application is created.
grant_type true string Request type.Its value is 'authorization_code'.


grant_type is authorization_code
  Requires Type and Range Description
code true string The value of code returned when call 'oauth2/authorize' interface.
redirect_uri true string Callback address.It need to be the same with the callback address filled when created the application.


Response

 {
       "access_token": "ACCESS_TOKEN",
       "expires_in": 1234,
       "refresh_token": "REFRESH_TOKEN"
 }