服务人员注册
用于服务商/商户开发者为商户注册服务人员使用。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 子商户ID |
corpid | string | 企业ID |
store_id | integer | 门店ID |
userid | string | 企业微信的员工ID |
name | string | 企业微信的员工姓名 |
mobile | string | 手机号码 |
qr_code | string | 员工个人二维码 |
avatar | string | 头像URL |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->smartguide->guides->postAsync([
'json' => [
'sub_mchid' => '',
'corpid' => '',
'store_id' => 0,
'userid' => '',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/smartguide/guides')->postAsync([
'json' => [
'sub_mchid' => '',
'corpid' => '',
'store_id' => 0,
'userid' => '',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/smartguide/guides']->postAsync([
'json' => [
'sub_mchid' => '',
'corpid' => '',
'store_id' => 0,
'userid' => '',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->smartguide->guides->post([
'json' => [
'sub_mchid' => '',
'corpid' => '',
'store_id' => 0,
'userid' => '',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/smartguide/guides')->post([
'json' => [
'sub_mchid' => '',
'corpid' => '',
'store_id' => 0,
'userid' => '',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/smartguide/guides']->post([
'json' => [
'sub_mchid' => '',
'corpid' => '',
'store_id' => 0,
'userid' => '',
'name' => '',
'mobile' => '',
'qr_code' => '',
'avatar' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
guide_id | string | 服务人员ID |
参阅 官方文档
服务人员查询
用于服务商/商户开发者查询已注册的服务人员ID等信息。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户ID |
store_id | integer | 门店ID |
userid | string | 企业微信的员工ID |
mobile | string | 手机号码 |
work_id | string | 工号 |
limit | integer | 最大资源条数 |
offset | integer | 请求资源起始位置 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->smartguide->guides->getAsync([
'query' => [
'sub_mchid' => '',
'store_id' => 0,
'userid' => '',
'mobile' => '',
'work_id' => '',
'limit' => 0,
'offset' => 0,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/smartguide/guides')->getAsync([
'query' => [
'sub_mchid' => '',
'store_id' => 0,
'userid' => '',
'mobile' => '',
'work_id' => '',
'limit' => 0,
'offset' => 0,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/smartguide/guides']->getAsync([
'query' => [
'sub_mchid' => '',
'store_id' => 0,
'userid' => '',
'mobile' => '',
'work_id' => '',
'limit' => 0,
'offset' => 0,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->smartguide->guides->get([
'query' => [
'sub_mchid' => '',
'store_id' => 0,
'userid' => '',
'mobile' => '',
'work_id' => '',
'limit' => 0,
'offset' => 0,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/smartguide/guides')->get([
'query' => [
'sub_mchid' => '',
'store_id' => 0,
'userid' => '',
'mobile' => '',
'work_id' => '',
'limit' => 0,
'offset' => 0,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/smartguide/guides']->get([
'query' => [
'sub_mchid' => '',
'store_id' => 0,
'userid' => '',
'mobile' => '',
'work_id' => '',
'limit' => 0,
'offset' => 0,
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
total_count | integer | 服务人员数量 |
limit | integer | 最大资源条数 |
offset | integer | 请求资源起始位置 |
data | object[] | |
guide_id | string | 服务人员ID |
store_id | integer | 门店ID |
name | string | 企业微信的员工姓名 |
mobile | string | 手机号码 |
userid | string | 企业微信的员工ID |
work_id | string | 工号 |
参阅 官方文档