查询刷掌授权
商户通过该接口查询用户授权状态
🔰
微信刷掌服务目前正在逐步推广中,暂不支持开放接入。如有合作意愿,请联系行业的运营经理沟通。
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | OpenID |
query | object | 声明请求的查询参数 |
organization_id | string | 机构ID |
php
$instance->v3->palmservice->authorization->openid->_openid_->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'organization_id' => '1004',
],
])
->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
2
3
4
5
6
7
8
9
10
php
$instance->chain('v3/palmservice/authorization/openid/{openid}')->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'organization_id' => '1004',
],
])
->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
2
3
4
5
6
7
8
9
10
php
$instance['v3/palmservice/authorization/openid/{openid}']->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'organization_id' => '1004',
],
])
->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
2
3
4
5
6
7
8
9
10
php
$response = $instance->v3->palmservice->authorization->openid->_openid_->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'organization_id' => '1004',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
2
3
4
5
6
7
php
$response = $instance->chain('v3/palmservice/authorization/openid/{openid}')->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'organization_id' => '1004',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
2
3
4
5
6
7
php
$response = $instance['v3/palmservice/authorization/openid/{openid}']->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'organization_id' => '1004',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
2
3
4
5
6
7
返回字典 | 类型 | 描述 |
---|---|---|
openid | string | OpenID |
organization_id | string | 机构ID |
state | string | 授权状态AUTHORIZATION_STATE_NONE | AUTHORIZATION_STATE_ON | AUTHORIZATION_STATE_OFF 枚举值之一 |
authorize_time | string | 授权时间 |
参阅 官方文档