public function MailchimpEcommerce::addStore in Mailchimp 8
Same name in this branch
- 8 lib/mailchimp-api-php/src/MailchimpEcommerce.php \Mailchimp\MailchimpEcommerce::addStore()
- 8 lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php \Mailchimp\Tests\MailchimpEcommerce::addStore()
Adds a new store to the authenticated account.
Parameters
string $id: A unique identifier for the store.
array $store: Associative array of store information.
- list_id (string) The id for the list associated with the store.
- name (string) The name of the store.
- currency_code (string) The three-letter ISO 4217 code for the currency that the store accepts.
array $parameters: Associative array of optional request parameters.
bool $batch: TRUE to create a new pending batch operation.
Return value
object The API store response object.
See also
http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...
1 call to MailchimpEcommerce::addStore()
- MailchimpEcommerce::addStore in lib/
mailchimp-api-php/ tests/ src/ MailchimpEcommerce.php - @inheritdoc
1 method overrides MailchimpEcommerce::addStore()
- MailchimpEcommerce::addStore in lib/
mailchimp-api-php/ tests/ src/ MailchimpEcommerce.php - @inheritdoc
File
- lib/
mailchimp-api-php/ src/ MailchimpEcommerce.php, line 69
Class
- MailchimpEcommerce
- Mailchimp Ecommerce library.
Namespace
MailchimpCode
public function addStore($id, $store, $parameters = [], $batch = FALSE) {
$parameters['id'] = $id;
$parameters += $store;
return $this
->request('POST', '/ecommerce/stores', NULL, $parameters, $batch);
}