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