Oauth2/get token info
(→返回数据) |
|||
第19行: | 第19行: | ||
"scope": null, | "scope": null, | ||
"create_at": 1352267591, | "create_at": 1352267591, | ||
− | " | + | "expire_in": 157679471 |
} | } | ||
</pre> | </pre> | ||
第34行: | 第34行: | ||
{{rdes_args|scope|string|用户授权的scope权限。}} | {{rdes_args|scope|string|用户授权的scope权限。}} | ||
{{rdes_args|create_at|string|access_token的创建时间,从1970年到创建时间的秒数。}} | {{rdes_args|create_at|string|access_token的创建时间,从1970年到创建时间的秒数。}} | ||
− | {{rdes_args| | + | {{rdes_args|expire_in|string|access_token的剩余时间,单位是秒数。}} |
|} | |} | ||
__NOTOC__ | __NOTOC__ |
2013年3月22日 (五) 14:46的版本
oauth2/get_token_info
查询用户access_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, "expire_in": 157679471 }
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
uid | string | 授权用户的uid。 |
appkey | string | access_token所属的应用appkey。 |
scope | string | 用户授权的scope权限。 |
create_at | string | access_token的创建时间,从1970年到创建时间的秒数。 |
expire_in | string | access_token的剩余时间,单位是秒数。 |