[关闭]
@myyzs 2021-11-24T06:16:36.000000Z 字数 715 阅读 98

获取用户关联的所有渠道信息

PC工作台相关接口


接口地址

/api/tenant-open/get-channel-info-by-code?access_token=ACCESS_TOKEN

传参方式

GET

参数说明

参数 描述 说明
user_code 用户code 如:zhangs01
channel_id 渠道id 不传默认为企业通讯录 -2:企业通讯录; 2:云服务; 3:云采购;4:项目跟投; 5:工程协同; 6:云客; 7:云空间; 8:移动销售; 9:云空间-开放平台;10:明源数见; 11:iDaaS

返回结果

正常结果

{
"errcode": 0,
"errmsg": "ok",
"data": [
   {
        "user_code": "zhangs01",
        "user_name": "张三",
        "channel_id": -2,
        "user_guid":"xxxxxxx"
    },
    {
        "user_code": "zhangs01",
        "user_name": "张三",
        "channel_id": 2,
        "channel_code": "poly",
        "user_guid":"xxxxxxx"
    },
    {
        "user_code": "zhangs02",
        "user_name": "张珊",
        "channel_id": 6,
        "channel_code": "poly",
        "user_guid":"xxxxxxx"
    }
  ]

}

异常结果

  {
    "errcode": -1,
    "errmsg": "user_code不能为空",
    "data": ""
   }

渠道映射表

channel_id 说明
-2 企业通讯录
2 云服务
3 云采购
4 项目跟投
5 工程协同
6 云客
7 云空间
8 移动销售
9 云空间-开放平台
10 明源数见

备注

  1. errcode 的值 为 0 的时候代表成功 其他的值代表 异常
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注