报名周周惠活动
报名周周惠活动
请求参数 | 类型 | 描述 |
---|---|---|
activity_id | string | 活动ID |
json | object | 声明请求的JSON 数据结构 |
applying_merchant_id | integer | 报名商户号 |
store_id | integer | 报名商户门店号 |
php
$instance->v3->marketing->weeklyDiscount->activities->_activity_id_->apply->postAsync([
'activity_id' => '11111',
'json' => [
'applying_merchant_id' => 10000098,
'store_id' => 111111,
],
])
->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/{activity_id}/apply')->postAsync([
'activity_id' => '11111',
'json' => [
'applying_merchant_id' => 10000098,
'store_id' => 111111,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/weekly-discount/activities/{activity_id}/apply']->postAsync([
'activity_id' => '11111',
'json' => [
'applying_merchant_id' => 10000098,
'store_id' => 111111,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->weeklyDiscount->activities->_activity_id_->apply->post([
'activity_id' => '11111',
'json' => [
'applying_merchant_id' => 10000098,
'store_id' => 111111,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/weekly-discount/activities/{activity_id}/apply')->post([
'activity_id' => '11111',
'json' => [
'applying_merchant_id' => 10000098,
'store_id' => 111111,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/weekly-discount/activities/{activity_id}/apply']->post([
'activity_id' => '11111',
'json' => [
'applying_merchant_id' => 10000098,
'store_id' => 111111,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
activity_id | integer | 报名成功的活动ID |
success_time | string | 报名成功时间 |
参阅 官方文档