版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

Markdown
## 根据插件token获取用户信息

**接口地址** `/api/open/editorPlugin/base/getUserInfoByToken`


**请求方式** `GET`


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


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


**接口描述** `企业级接口,hearer必须携带X-Token`

**请求参数**

| 参数名称         | 参数说明     |     请求类型 |  是否必须      |  数据类型   |  schema  |
| ------------ | -------------------------------- |-----------|--------|----|--- |
| X-Token         |      自建应用访问token   |     header        |       true      | string   |      |
| orgId         |      企业ID   |     query        |       false      | string   |      |
| appInstanceId         |      应用实例ID   |     query        |       false      | integer   |      |
| nonce         |      6位随机字符串   |     query        |       true      | string   |      |
| timestamp         |      unix时间戳(毫秒)   |     query        |       true      | integer   |      |
| pluginToken         |         |     query        |       false      | string   |      |
            





**响应状态**

| 状态码         | 说明                             |    schema                         |
| ------------ | -------------------------------- |---------------------- |
| 200         | OK                        |ApiResponse«PluginTokenDto»                          |
| 401         | Unauthorized                        |                          |
| 403         | Forbidden                        |                          |
| 404         | Not Found                        |                          |




**响应参数**

| 参数名称         | 参数说明                             |    类型 |  schema |
| ------------ | -------------------|-------|----------- |
| code     |      |    string   |       |
| data     |      |    PluginTokenDto   |   PluginTokenDto    |
| errorCode     |      |    string   |       |
| msg     |      |    string   |       |
            



**schema属性说明**
  
**PluginTokenDto**

| 参数名称         | 参数说明                             |    类型 |  schema |
| ------------ | ------------------|--------|----------- |
| appId         |     作品id      |  string   |      |
| audid         |     客户ID      |  string   |      |
| browser         |     浏览器, e.g. Weixin6.7.3      |  string   |      |
| cnlDeptId         |     传播的部门ID      |  string   |      |
| cnlId         |     传播渠道Id      |  string   |      |
| cnlType         |     传播渠道类型      |  string   |      |
| device         |     设备类型,按操作系统区分, e.g. iOS/Android      |  string   |      |
| deviceBrand         |     设备品牌,e.g. xiaomi/apple      |  string   |      |
| deviceOs         |     设备操作系统版本, e.g. iOS9.1      |  string   |      |
| leaderId         |     队伍Id      |  string   |      |
| orgId         |     企业ID      |  string   |      |
| pfid         |     企业pfid      |  string   |      |
| splayRecordId         |           |  string   |      |
| unionid        |   unionid        |  string   |      |
| openid        |      openid     |  string   |      |
            




**响应示例**


```json
{
	"code": "",
	"data": {
		"appId": "",
		"audid": "",
		"browser": "",
		"cnlDeptId": "",
		"cnlId": "",
		"cnlType": "",
		"device": "",
		"deviceBrand": "",
		"deviceOs": "",
		"leaderId": "",
		"orgId": "",
		"pfid": "",
		"splayRecordId": ""
	},
	"errorCode": "",
	"msg": ""
}
```

...