服务人员信息更新
用于服务商/用于服务商/商户开发者为商户更新门店服务人员的姓名、头像等信息
请求参数 | 类型 | 描述 |
---|---|---|
guide_id | string | 服务人员ID |
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 子商户ID |
name | string | 企业微信的员工姓名 |
mobile | string | 手机号码 |
qr_code | string | 员工个人二维码 |
avatar | string | 头像URL |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->smartguide->guides->_guide_id_->patchAsync([
'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
'json' => [
'sub_mchid' => '1234567890',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/smartguide/guides/{guide_id}')->patchAsync([
'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
'json' => [
'sub_mchid' => '1234567890',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/smartguide/guides/{guide_id}']->patchAsync([
'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
'json' => [
'sub_mchid' => '1234567890',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->smartguide->guides->_guide_id_->patch([
'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
'json' => [
'sub_mchid' => '1234567890',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/smartguide/guides/{guide_id}')->patch([
'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
'json' => [
'sub_mchid' => '1234567890',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/smartguide/guides/{guide_id}']->patch([
'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
'json' => [
'sub_mchid' => '1234567890',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档