Skip to content

查询活动指定商品列表

商户创建活动后,可以通过该接口查询支付有礼的活动指定商品,用于管理活动。

请求参数类型描述
activity_idstring活动id
queryobject声明请求的查询参数
offsetinteger分页页码
limitinteger分页大小
php
$instance->v3->marketing->paygiftactivity->activities->_activity_id_->goods->getAsync([
  'activity_id' => '',
  'query' => [
    'offset' => 1,
    'limit'  => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}/goods')->getAsync([
  'activity_id' => '',
  'query' => [
    'offset' => 1,
    'limit'  => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/paygiftactivity/activities/{activity_id}/goods']->getAsync([
  'activity_id' => '',
  'query' => [
    'offset' => 1,
    'limit'  => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->paygiftactivity->activities->_activity_id_->goods->get([
  'activity_id' => '',
  'query' => [
    'offset' => 1,
    'limit'  => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/paygiftactivity/activities/{activity_id}/goods')->get([
  'activity_id' => '',
  'query' => [
    'offset' => 1,
    'limit'  => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/paygiftactivity/activities/{activity_id}/goods']->get([
  'activity_id' => '',
  'query' => [
    'offset' => 1,
    'limit'  => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
offsetinteger分页页码
limitinteger分页大小
total_countinteger总数
activity_idstring活动id
dataobject[]结果集
goods_idstring指定商品
create_timestring创建时间
update_timestring更新时间

参阅 官方文档

Published on the GitHub by TheNorthMemory