mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]增加客服绑定接口
This commit is contained in:
parent
87947a64e2
commit
e7fc0e1302
@ -75,6 +75,21 @@ class Custom extends BasicWeChat
|
|||||||
return $this->httpPostForJson($url, $data);
|
return $this->httpPostForJson($url, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 邀请绑定客服帐号
|
||||||
|
* @param string $kf_account 完整客服帐号,格式为:帐号前缀@公众号微信号
|
||||||
|
* @param string $invite_wx 接收绑定邀请的客服微信号
|
||||||
|
* @return array
|
||||||
|
* @throws Exceptions\InvalidResponseException
|
||||||
|
* @throws Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function inviteworker($kf_account, $invite_wx)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/customservice/kfaccount/inviteworker?access_token=ACCESS_TOKEN';
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->callPostApi($url, ['kf_account' => $kf_account, 'invite_wx' => $invite_wx]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有客服账号
|
* 获取所有客服账号
|
||||||
* @return array
|
* @return array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user