Skip to content

查询刷掌授权

商户通过该接口查询用户授权状态

🔰

微信刷掌服务目前正在逐步推广中,暂不支持开放接入。如有合作意愿,请联系行业的运营经理沟通。

请求参数类型描述
openidstringOpenID
queryobject声明请求的查询参数
organization_idstring机构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();
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();
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();
php
$response = $instance->v3->palmservice->authorization->openid->_openid_->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'organization_id' => '1004',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
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));
php
$response = $instance['v3/palmservice/authorization/openid/{openid}']->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'organization_id' => '1004',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
openidstringOpenID
organization_idstring机构ID
statestring授权状态
AUTHORIZATION_STATE_NONE | AUTHORIZATION_STATE_ON | AUTHORIZATION_STATE_OFF 枚举值之一
authorize_timestring授权时间

参阅 官方文档

Published on the GitHub by TheNorthMemory