Skip to content

分页查询投放计划列表

分页查询投放计划列表

请求参数类型描述
brand_idstring品牌ID
queryobject声明请求的查询参数
page_sizeinteger分页大小
offsetinteger分页起始位置
plan_statestring投放计划线上状态
PLAN_CREATING | PLAN_CREATED | PLAN_TERMINATING | PLAN_TERMINATED | PLAN_EXPIRED | PLAN_DELIVERING | PLAN_PAUSED 枚举值之一
audit_statestring投放计划审核状态
AUDIT_INITIAL | AUDIT_PROCESSING | AUDIT_PASSED | AUDIT_REJECTED 枚举值之一
plan_idstring投放计划ID
php
$instance->v3->marketing->partner->deliveryPlan->deliveryPlans->_brand_id_->deliveryPlans->getAsync([
  'brand_id' => '40016',
  'query' => [
    'page_size'   => 5,
    'offset'      => 10,
    'plan_state'  => 'PLAN_CREATED',
    'audit_state' => '12000',
    'plan_id'     => '12000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/partner/delivery-plan/delivery-plans/{brand_id}/delivery-plans')->getAsync([
  'brand_id' => '40016',
  'query' => [
    'page_size'   => 5,
    'offset'      => 10,
    'plan_state'  => 'PLAN_CREATED',
    'audit_state' => '12000',
    'plan_id'     => '12000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/partner/delivery-plan/delivery-plans/{brand_id}/delivery-plans']->getAsync([
  'brand_id' => '40016',
  'query' => [
    'page_size'   => 5,
    'offset'      => 10,
    'plan_state'  => 'PLAN_CREATED',
    'audit_state' => '12000',
    'plan_id'     => '12000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->partner->deliveryPlan->deliveryPlans->_brand_id_->deliveryPlans->get([
  'brand_id' => '40016',
  'query' => [
    'page_size'   => 5,
    'offset'      => 10,
    'plan_state'  => 'PLAN_CREATED',
    'audit_state' => '12000',
    'plan_id'     => '12000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/partner/delivery-plan/delivery-plans/{brand_id}/delivery-plans')->get([
  'brand_id' => '40016',
  'query' => [
    'page_size'   => 5,
    'offset'      => 10,
    'plan_state'  => 'PLAN_CREATED',
    'audit_state' => '12000',
    'plan_id'     => '12000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/partner/delivery-plan/delivery-plans/{brand_id}/delivery-plans']->get([
  'brand_id' => '40016',
  'query' => [
    'page_size'   => 5,
    'offset'      => 10,
    'plan_state'  => 'PLAN_CREATED',
    'audit_state' => '12000',
    'plan_id'     => '12000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
total_countinteger资源总条数
plan_listobject[]投放计划列表
plan_idstring投放计划ID
plan_namestring投放计划名称
plan_statestring投放计划状态
PLAN_CREATING | PLAN_CREATED | PLAN_TERMINATING | PLAN_TERMINATED | PLAN_EXPIRED | PLAN_DELIVERING | PLAN_PAUSED 枚举值之一
delivery_start_timestring开始可用时间
delivery_end_timestring结束可用时间
stock_idstring批次ID
product_coupon_idstring商品券ID
recommend_wordstring营销标签
brand_idstring品牌ID
total_countinteger总库存
user_limitinteger单用户限领
daily_limitinteger单日限领

参阅 官方文档

Published on the GitHub by TheNorthMemory