Skip to content

报名周周惠活动

报名周周惠活动

请求参数类型描述
activity_idstring活动ID
jsonobject声明请求的JSON数据结构
applying_merchant_idinteger报名商户号
store_idinteger报名商户门店号
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_idinteger报名成功的活动ID
success_timestring报名成功时间

参阅 官方文档

Published on the GitHub by TheNorthMemory