商户解除用户授权关系
商户通过调用该接口,可主动与用户解除此前授权关系。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
appid | string | 公众账号ID |
reason | string | 撤销原因 |
query | object | 声明请求的查询参数 |
openid | string | 用户标识 |
service_id | string | 公众账号ID |
php
$instance->v3->payscore->users->_openid_->permissions->_service_id_->terminate->postAsync([
'json' => [
'appid' => '',
'reason' => '',
],
'query' => [
'openid' => '',
'service_id' => '',
],
])
->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
2
3
4
5
6
7
8
9
10
11
12
13
14
php
$instance->chain('v3/payscore/users/{openid}/permissions/{service_id}/terminate')->postAsync([
'json' => [
'appid' => '',
'reason' => '',
],
'query' => [
'openid' => '',
'service_id' => '',
],
])
->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
2
3
4
5
6
7
8
9
10
11
12
13
14
php
$instance['v3/payscore/users/{openid}/permissions/{service_id}/terminate']->postAsync([
'json' => [
'appid' => '',
'reason' => '',
],
'query' => [
'openid' => '',
'service_id' => '',
],
])
->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
2
3
4
5
6
7
8
9
10
11
12
13
14
php
$response = $instance->v3->payscore->users->_openid_->permissions->_service_id_->terminate->post([
'json' => [
'appid' => '',
'reason' => '',
],
'query' => [
'openid' => '',
'service_id' => '',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$response = $instance->chain('v3/payscore/users/{openid}/permissions/{service_id}/terminate')->post([
'json' => [
'appid' => '',
'reason' => '',
],
'query' => [
'openid' => '',
'service_id' => '',
],
]);
print_r($response->getStatusCode() === 204);
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/payscore/users/{openid}/permissions/{service_id}/terminate']->post([
'json' => [
'appid' => '',
'reason' => '',
],
'query' => [
'openid' => '',
'service_id' => '',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档