来自ID开放平台
oauth2/get_token_info
OAuth2的get_token_info接口
URL
https://api.10000.com/oauth2/get_token_info
HTTP请求方式
GET
请求参数
| 必选 | 类型及范围 | 说明 | |
|---|---|---|---|
| client_id | true | string | 申请应用时分配的AppKey。 |
| access_token | true | string | 授权后的access token。 |
返回数据
| 返回值字段 | 字段类型 | 字段说明 |
|---|---|---|
| app_key | string | 申请应用时分配的AppKey。 |
| access_token | string | 授权后的access token。 |
| refresh_token | string | 用于刷新的refresh_token。 |
| authorities | string | 授予的权限。 |
| uid或coid | string | 当前个人应用授权时,返回用户的UID。企业应用时,返回企业ID |
| expire | string | access_token的生命周期,单位是秒数。 |
| create_time | string | 授权生成时间戳。 |
{
"app_key": "app_key",
"access_token": "ACCESS_TOKEN",
"refresh_token": "refresh_token",
"expire": 1234,
"uid或coid":"12341234",
"create_time":"1392355857"
}