拉取客服和客服组信息

POST https://webapi.kf5.com/kchat/message

请求参数:

{
	"action": "get_agent_states",
    "data": {
        "agent_ids": [122, 586]
    }}

备注:
参数 data 可以省略,表示查询所有客服的状态和信息

接口响应示例:

{
	"error_code": 0,
	"message": "请求成功",
	"data": {
		"agents":[
			{
				"id":122,
				"name":"客服小叶",
				"display_name":"客服小叶",
				"photo":"https://fs.kf5.com/upload/59/201503/1427102374_568.jpg",
				"max_serve":8,
				"web_status":"online",
				"app_status":"offline"
			},
			{
				"id":586,
				"name":"张伟",
				"display_name":"客服小张",
				"photo":"https://fs.kf5.com/upload/59/201606/57517f60ddb57_352.jpg",
				"max_serve":-1,
				"web_status":"busy",
				"app_status":"online"
			}
		],
		"groups":[
			{
				"id":"13768",
				"name":"售前客服组",
				"agents":[
					"122",
					"586",
					"8358000"
				]
			},
			{
				"id":"22426",
				"name":"支持服务组",
				"agents":[
					"122",
					"5977866"
				]
			}
		]
	}}