Oauth2/get token info
(→返回数据) |
(→返回数据) |
||
第34行: | 第34行: | ||
{{rdes_args|scope|string|用于授权的scope权限。}} | {{rdes_args|scope|string|用于授权的scope权限。}} | ||
{{rdes_args|create_at|string|access_token的创建时间。}} | {{rdes_args|create_at|string|access_token的创建时间。}} | ||
− | {{rdes_args|expires_in|string| | + | {{rdes_args|expires_in|string|access_token的剩余时间,单位是秒数。}} |
|} | |} | ||
__NOTOC__ | __NOTOC__ |
2012年11月7日 (三) 14:26的版本
oauth2/get_token_info
查询用户token的授权相关信息,包括授权时间,过期时间和scope权限。
URL
https://api.weibo.com/oauth2/get_token_info
HTTP请求方式
POST
请求参数
access_token:用户授权时生成的access_token。
返回数据
{ "uid": 1073880650, "appkey": 1352222456, "scope": null, "create_at": 1352267591, "expires_in": 157679471 }
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
uid | string | 授权用户的uid。 |
appkey | string | access_token所属的应用appkey。 |
scope | string | 用于授权的scope权限。 |
create_at | string | access_token的创建时间。 |
expires_in | string | access_token的剩余时间,单位是秒数。 |