商圈积分授权查询
通过积分授权查询API,商圈商户可自行查询用户积分功能开通情况
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 顾客openid |
query | object | 声明请求的查询参数 |
sub_mchid | string | 商圈商户ID |
appid | string | 小程序appid |
php
$instance->v3->businesscircle->userAuthorizations->_openid_->getAsync([
'openid' => 'oWmnN4xxxxxxxxxxe92NHIGf1xd8',
'query' => [
'sub_mchid' => '1900000109',
'appid' => 'wx1234567890abcdef',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance->chain('v3/businesscircle/user-authorizations/{openid}')->getAsync([
'openid' => 'oWmnN4xxxxxxxxxxe92NHIGf1xd8',
'query' => [
'sub_mchid' => '1900000109',
'appid' => 'wx1234567890abcdef',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance['v3/businesscircle/user-authorizations/{openid}']->getAsync([
'openid' => 'oWmnN4xxxxxxxxxxe92NHIGf1xd8',
'query' => [
'sub_mchid' => '1900000109',
'appid' => 'wx1234567890abcdef',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$response = $instance->v3->businesscircle->userAuthorizations->_openid_->get([
'openid' => 'oWmnN4xxxxxxxxxxe92NHIGf1xd8',
'query' => [
'sub_mchid' => '1900000109',
'appid' => 'wx1234567890abcdef',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance->chain('v3/businesscircle/user-authorizations/{openid}')->get([
'openid' => 'oWmnN4xxxxxxxxxxe92NHIGf1xd8',
'query' => [
'sub_mchid' => '1900000109',
'appid' => 'wx1234567890abcdef',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance['v3/businesscircle/user-authorizations/{openid}']->get([
'openid' => 'oWmnN4xxxxxxxxxxe92NHIGf1xd8',
'query' => [
'sub_mchid' => '1900000109',
'appid' => 'wx1234567890abcdef',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
返回字典 | 类型 | 描述 |
---|---|---|
openid | string | 顾客openid |
authorize_state | string | 授权状态 |
authorize_time | string | 授权时间 |
deauthorize_time | string | 取消授权时间 |