分页查询投放计划列表
分页查询投放计划列表
| 请求参数 | 类型 | 描述 |
|---|---|---|
| brand_id | string | 品牌ID |
| query | object | 声明请求的查询参数 |
| page_size | integer | 分页大小 |
| offset | integer | 分页起始位置 |
| plan_state | string | 投放计划线上状态PLAN_CREATING | PLAN_CREATED | PLAN_TERMINATING | PLAN_TERMINATED | PLAN_EXPIRED | PLAN_DELIVERING | PLAN_PAUSED 枚举值之一 |
| audit_state | string | 投放计划审核状态AUDIT_INITIAL | AUDIT_PROCESSING | AUDIT_PASSED | AUDIT_REJECTED 枚举值之一 |
| plan_id | string | 投放计划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_count | integer | 资源总条数 |
| plan_list | object[] | 投放计划列表 |
| plan_id | string | 投放计划ID |
| plan_name | string | 投放计划名称 |
| plan_state | string | 投放计划状态PLAN_CREATING | PLAN_CREATED | PLAN_TERMINATING | PLAN_TERMINATED | PLAN_EXPIRED | PLAN_DELIVERING | PLAN_PAUSED 枚举值之一 |
| delivery_start_time | string | 开始可用时间 |
| delivery_end_time | string | 结束可用时间 |
| stock_id | string | 批次ID |
| product_coupon_id | string | 商品券ID |
| recommend_word | string | 营销标签 |
| brand_id | string | 品牌ID |
| total_count | integer | 总库存 |
| user_limit | integer | 单用户限领 |
| daily_limit | integer | 单日限领 |
参阅 官方文档