## 获取第三方平台访问token
**接口地址** `/api/integrate/getComponentAccessToken`
**请求方式** `GET`
**consumes** `["application/json"]`
**produces** `["*/*"]`
**接口描述** ``
**请求参数**
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
| ------------ | -------------------------------- |-----------|--------|----|--- |
| X-ComponentToken | 第三方平台访问token(第三方平台) | header | false | string | |
| componentAppid | 平台appid | query | true | string | |
| componentAppsecret | 平台秘钥 | query | true | string | |
**响应状态**
| 状态码 | 说明 | schema |
| ------------ | -------------------------------- |---------------------- |
| 200 | OK |ApiResponse«平台访问token生成实体» |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found | |
**响应参数**
| 参数名称 | 参数说明 | 类型 | schema |
| ------------ | -------------------|-------|----------- |
| code | | string | |
| data | | 平台访问token生成实体 | 平台访问token生成实体 |
| errorCode | | string | |
| msg | | string | |
**schema属性说明**
**平台访问token生成实体**
| 参数名称 | 参数说明 | 类型 | schema |
| ------------ | ------------------|--------|----------- |
| componentAccessToken | 第三方平台访问token | string | |
| componentRefreshToken | 刷新accessToken | string | |
| expire | 令牌过期时间,单位秒 | integer(int64) | |
**响应示例**
```json
{
"code": "",
"data": {
"componentAccessToken": "",
"componentRefreshToken": "",
"expire": 0
},
"errorCode": "",
"msg": ""
}
```
|