Skip to content

获取支付有礼活动列表

商户根据一定过滤条件,查询已创建的支付有礼活动。

请求参数类型描述
queryobject声明请求的查询参数
offsetinteger分页页码
limitinteger分页大小
activity_namestring活动名称
activity_statusstring活动状态
CREATE_ACT_STATUS | ONGOING_ACT_STATUS | TERMINATE_ACT_STATUS | STOP_ACT_STATUS | OVER_TIME_ACT_STATUS | CREATE_ACT_FAILED 枚举值之一
award_typestring奖品类型
BUSIFAVOR 枚举值
php
$instance->v3->marketing->paygiftactivity->activities->getAsync([
  'query' => [
    'offset'          => 0,
    'limit'           => 0,
    'activity_name'   => '',
    'activity_status' => 'CREATE_ACT_STATUS',
    'award_type'      => 'BUSIFAVOR',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/paygiftactivity/activities')->getAsync([
  'query' => [
    'offset'          => 0,
    'limit'           => 0,
    'activity_name'   => '',
    'activity_status' => 'CREATE_ACT_STATUS',
    'award_type'      => 'BUSIFAVOR',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/paygiftactivity/activities']->getAsync([
  'query' => [
    'offset'          => 0,
    'limit'           => 0,
    'activity_name'   => '',
    'activity_status' => 'CREATE_ACT_STATUS',
    'award_type'      => 'BUSIFAVOR',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->paygiftactivity->activities->get([
  'query' => [
    'offset'          => 0,
    'limit'           => 0,
    'activity_name'   => '',
    'activity_status' => 'CREATE_ACT_STATUS',
    'award_type'      => 'BUSIFAVOR',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/paygiftactivity/activities')->get([
  'query' => [
    'offset'          => 0,
    'limit'           => 0,
    'activity_name'   => '',
    'activity_status' => 'CREATE_ACT_STATUS',
    'award_type'      => 'BUSIFAVOR',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/paygiftactivity/activities']->get([
  'query' => [
    'offset'          => 0,
    'limit'           => 0,
    'activity_name'   => '',
    'activity_status' => 'CREATE_ACT_STATUS',
    'award_type'      => 'BUSIFAVOR',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
offsetinteger分页页码
limitinteger分页大小
total_countinteger总数

参阅 官方文档

Published on the GitHub by TheNorthMemory