You are here

public function MailchimpEcommerce::getProducts in Mailchimp 8

Get information about all products for a store.

Parameters

string $store_id: The store id.

array $parameters: An array of optional parameters. See API docs.

Return value

object The API product response object.

Throws

\Mailchimp\MailchimpAPIException

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...

File

lib/mailchimp-api-php/src/MailchimpEcommerce.php, line 767

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

public function getProducts($store_id, $parameters = []) {
  $tokens = [
    'store_id' => $store_id,
  ];
  return $this
    ->request('GET', '/ecommerce/stores/{store_id}/products', $tokens, $parameters);
}