请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/CustomerRadar/getSet

请求类型

POST

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"is_open": 0,
		"agent_id": "",
		"agent_secret": "",
		"is_notice": 0,
		"exclude_member": [],
		"push_range": []
	}
}
{
	"result": 1,
	"msg": "成功",
	"data": {
		"id": 1,
		"uniacid": 1,
		"business_id": 1,
		"is_open": 1,
		"agent_id": "safsdfsff",
		"agent_secret": "vdlkkla",
		"is_notice": 1,
		"exclude_member": [
			{
				"uid": 164959,
				"nickname": "",
				"avatar": "/static/images/photo-mr.jpg",
				"avatar_image": "http://localhost-yunshop.cn/static/images/photo-mr.jpg",
				"username": ""
			},
			{
				"uid": 164960,
				"nickname": "13422650566",
				"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
				"avatar_image": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
				"username": "13422650566"
			}
		],
		"push_range": [
			{
				"id": 10,
				"name": "肖培灿",
				"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
				"type": "staff",
				"userid": null,
				"avatar_mediaid": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0"
			},
			{
				"id": 13,
				"name": "许家健233",
				"avatar": "",
				"type": "staff",
				"userid": null,
				"avatar_mediaid": ""
			},
			{
				"id": 1,
				"name": "芸信",
				"type": "department"
			}
		],
		"created_at": "1646968903",
		"updated_at": "1646969837",
		"deleted_at": 0
	}
}

返回参数说明:

参数名 类型 说明
is_open int 是否开启,0否1是
agent_id string agentID
agent_secret string agentSecret
is_notice int 是否企业人员访问通知,0否1是
exclude_member[0][uid] int 会员uid
exclude_member[0][nickname] string 会员昵称
push_range[0][type] string staff表示员工,department表示部门
push_range[0][id] int 员工或部门id
push_range[0][name] string 员工或部门名称