接口描述
使用合法的授权令牌,获取当前用户指定应用的账号列表。
请求方法
GET
请求地址
/auth/account/list
对外开放
是
请求参数
| 参数 | 参数位置 | 类型 | 是否必填 | 描述 | 
| access_token | Header | String | 是 | access_token,在 HTTP 头部Authorization 属性中传入的 Bearer 令牌 | 
| application_id | Query | String | 是 | 应用 ID,是应用的全局唯一标识 | 
返回参数
| 参数 | 参数类型 | 描述 | 
| app_info | application_info | 应用信息 | 
| account_list | Array of String | 用户账号名称列表 | 
接口示例
输入示例
Authorization:Bearer 566bbf8*******a0ddbdbd45e0699bd3fhttps://<auth_domain>/auth/account/list?application_id=10b99f39-8243-4900-956f-f6baceb4cb94
返回示例
{"app_info": {"app_icon": "https://online-xxxxxxx.cos.ap-shenzhen-fsi.myqcloud.com/xxxxxxxx/...","app_name": "app1"},"account_list": ["account1","account2"]}
错误码
| httpStatus | Response | 
| 400 | {"error":  "invalid_request", "error_description": "missing  access_token parameter"} | 
| 401 | {"error":  "invalid_request", "error_description":  "invalid_token"} |