Skip to content

查询周周惠活动列表

查询周周惠活动列表

请求参数类型描述
queryobject声明请求的查询参数
limitinteger最大资源条数
offsetinteger请求资源起始位置
applying_merchant_idinteger报名商户号
store_idinteger报名商户门店号
activity_area_codeinteger活动投放区域编码
activity_scenestring投放场景
php
$instance->v3->marketing->weeklyDiscount->activities->getAsync([
  'query' => [
    'limit'                => 5,
    'offset'               => 10,
    'applying_merchant_id' => 10000098,
    'store_id'             => 1111111,
    'activity_area_code'   => 110000,
    'activity_scene'       => 'SCAN_CODE_TO_ORDER',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/weekly-discount/activities')->getAsync([
  'query' => [
    'limit'                => 5,
    'offset'               => 10,
    'applying_merchant_id' => 10000098,
    'store_id'             => 1111111,
    'activity_area_code'   => 110000,
    'activity_scene'       => 'SCAN_CODE_TO_ORDER',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/weekly-discount/activities']->getAsync([
  'query' => [
    'limit'                => 5,
    'offset'               => 10,
    'applying_merchant_id' => 10000098,
    'store_id'             => 1111111,
    'activity_area_code'   => 110000,
    'activity_scene'       => 'SCAN_CODE_TO_ORDER',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->weeklyDiscount->activities->get([
  'query' => [
    'limit'                => 5,
    'offset'               => 10,
    'applying_merchant_id' => 10000098,
    'store_id'             => 1111111,
    'activity_area_code'   => 110000,
    'activity_scene'       => 'SCAN_CODE_TO_ORDER',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/weekly-discount/activities')->get([
  'query' => [
    'limit'                => 5,
    'offset'               => 10,
    'applying_merchant_id' => 10000098,
    'store_id'             => 1111111,
    'activity_area_code'   => 110000,
    'activity_scene'       => 'SCAN_CODE_TO_ORDER',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/weekly-discount/activities']->get([
  'query' => [
    'limit'                => 5,
    'offset'               => 10,
    'applying_merchant_id' => 10000098,
    'store_id'             => 1111111,
    'activity_area_code'   => 110000,
    'activity_scene'       => 'SCAN_CODE_TO_ORDER',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
dataobject[]周周惠活动详情
activity_idstring活动ID
activity_namestring活动名称
activity_scenestring活动投放场景
activity_area_codestring[]活动投放区域编码
activity_limit_paystring活动指定付款方式
activity_transaction_minimum_amountinteger活动优惠门槛
activity_coupon_amountinteger活动优惠金额
activity_available_weekstring[]活动可使用周期
activity_max_amountinteger活动预算
activity_max_amount_per_dayinteger活动单天预算
activity_available_begin_timestring活动开始时间
activity_available_end_timestring活动结束时间
activity_statestring活动状态
activity_remarkstring活动备注
activity_logostring活动logo
offsetinteger请求资源起始位置
limitinteger最大资源条数
total_countinteger资源总条数

参阅 官方文档

Published on the GitHub by TheNorthMemory