## 获取企业授权code


**接口描述**:


**接口地址**:`{host}/api/integrate/company/getAuthCode`


**请求方式**:`GET`


**consumes**:`["application/json"]`


**produces**:`["*/*"]`



**请求参数**:

| 参数名称         | 参数说明     |     in |  是否必须      |  数据类型  |  schema  |
| ------------ | -------------------------------- |-----------|--------|----|--- |
|X-ComponentToken| 第三方平台访问token  | header | true |string  |    |
|companyId| 第三方企业id  | query | true |string  |    |
|companyName| 第三方企业名称  | query | true |string  |    |
|extInfo| 拓展信息字段(选填,第三方约定json格式)  | query | false |string  |    |

**响应示例**:

```json
{
   "code": "",
   "data": {
      "authCode": ""
   },
   "msg": ""
}
```

**响应参数**:


| 参数名称         | 参数说明                             |    类型 |  schema |
| ------------ | -------------------|-------|----------- |
|code| 请求码  200-请求成功 100100-appid、secret错误 100200-token错误 100300-授权code错误 | string| 
|data|  响应数据 |获取企业授权code响应实体  | 获取企业授权code响应实体   |
|msg| 错误信息  |string  |    |



**schema属性说明**




**获取企业授权code响应实体**

| 参数名称         | 参数说明                             |    类型 |  schema |
| ------------ | ------------------|--------|----------- |
|authCode | 企业授权code   |string  |    |

**响应状态**:


| 状态码         | 说明                            |    schema                         |
| ------------ | -------------------------------- |---------------------- |
| 200 | OK  |ApiResponse«获取企业授权code响应实体»|
| 401 | Unauthorized  ||
| 403 | Forbidden  ||
| 404 | Not Found  ||