Skip to content

商户解除用户授权关系

商户通过调用该接口,可主动与用户解除此前授权关系。

请求参数类型描述
jsonobject声明请求的JSON数据结构
appidstring公众账号ID
reasonstring撤销原因
queryobject声明请求的查询参数
openidstring用户标识
service_idstring公众账号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();
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();
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();
php
$response = $instance->v3->payscore->users->_openid_->permissions->_service_id_->terminate->post([
  'json' => [
    'appid' => '',
    'reason' => '',
  ],
  'query' => [
    'openid' => '',
    'service_id' => '',
  ],
]);
print_r($response->getStatusCode() === 204);
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);
php
$response = $instance['v3/payscore/users/{openid}/permissions/{service_id}/terminate']->post([
  'json' => [
    'appid' => '',
    'reason' => '',
  ],
  'query' => [
    'openid' => '',
    'service_id' => '',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory