解除用户授权关系(openid)
通过openid,服务商帮子商户解除用户授权关系
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
openid | string | 服务商公众号下的用户标识 |
sub_openid | string | 子商户公众号下openid |
service_id | string | 服务ID |
appid | string | 服务商应用ID |
sub_appid | string | 子商户应用ID |
sub_mchid | string | 子商户号 |
reason | string | 撤销原因 |
php
$instance->v3->payscore->partner->permissions->terminate->postAsync([
'json' => [
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'sub_openid' => '',
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1230000109',
'reason' => 'reason',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$instance->chain('v3/payscore/partner/permissions/terminate')->postAsync([
'json' => [
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'sub_openid' => '',
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1230000109',
'reason' => 'reason',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$instance['v3/payscore/partner/permissions/terminate']->postAsync([
'json' => [
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'sub_openid' => '',
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1230000109',
'reason' => 'reason',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$response = $instance->v3->payscore->partner->permissions->terminate->post([
'json' => [
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'sub_openid' => '',
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1230000109',
'reason' => 'reason',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$response = $instance->chain('v3/payscore/partner/permissions/terminate')->post([
'json' => [
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'sub_openid' => '',
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1230000109',
'reason' => 'reason',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$response = $instance['v3/payscore/partner/permissions/terminate']->post([
'json' => [
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'sub_openid' => '',
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'sub_appid' => 'wxd678efh567hg6787',
'sub_mchid' => '1230000109',
'reason' => 'reason',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |