查询与用户授权记录(授权协议号)
通过authorization_code,商户查询与用户授权关系
请求参数 | 类型 | 描述 |
---|---|---|
authorization_code | string | 授权协议号 |
query | object | 声明请求的查询参数 |
service_id | string | 服务ID |
php
$instance->v3->payscore->permissions->authorizationCode->_authorization_code_->getAsync([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
],
])
->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/payscore/permissions/authorization-code/{authorization_code}')->getAsync([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
],
])
->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/payscore/permissions/authorization-code/{authorization_code}']->getAsync([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
],
])
->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->payscore->permissions->authorizationCode->_authorization_code_->get([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
],
]);
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/payscore/permissions/authorization-code/{authorization_code}')->get([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
],
]);
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/payscore/permissions/authorization-code/{authorization_code}']->get([
'authorization_code' => '1234323JKHDFE1243252',
'query' => [
'service_id' => '500001',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
2
3
4
5
6
7
返回字典 | 类型 | 描述 |
---|---|---|
service_id | string | 服务id |
appid | string | 公众号id |
mchid | string | 商户号 |
openid | string | 用户标识 |
authorization_code | string | 授权协议号 |
notify_url | string | 授权通知地址 |
cancel_authorization_time | string | 最近一次解除授权时间 |
authorization_success_time | string | 最近一次授权成功时间 |
user_risk_level | number | 用户分层 |
risk_level_version | number | 分层版本 |