Skip to content

同业过滤标签管理

服务商使用此接口为特约商户配置同业过滤标签,防止特约商户支付后出现同行业的广告内容。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring特约子商户号
advertising_industry_filtersstring[]子商户同业过滤的同业过滤标签值
E_COMMERCE | LOVE_MARRIAGE | POTOGRAPHY | EDUCATION | FINANCE | TOURISM | SKINCARE | FOOD | SPORT | JEWELRY_WATCH | HEALTHCARE | BUSSINESS | PARENTING | CATERING | RETAIL | SERVICES | LAW | ESTATE | TRANSPORTATION | ENERGY_SAVING | SECURITY | BUILDING_MATERIAL | COMMUNICATION | MERCHANDISE | ASSOCIATION | COMMUNITY | ONLINE_AVR | WE_MEDIA | CAR | SOFTWARE | GAME | CLOTHING | INDUSTY | AGRICULTURE | PUBLISHING_MEDIA | HOME_DIGITAL 枚举值之一
php
$instance->v3->goldplan->merchants->setAdvertisingIndustryFilter->postAsync([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/goldplan/merchants/set-advertising-industry-filter')->postAsync([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/goldplan/merchants/set-advertising-industry-filter']->postAsync([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->goldplan->merchants->setAdvertisingIndustryFilter->post([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/goldplan/merchants/set-advertising-industry-filter')->post([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/goldplan/merchants/set-advertising-industry-filter']->post([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory