You are here

public function MailchimpEcommerce::getProduct in Mailchimp 8

Get information about a specific product.

Parameters

string $store_id: The store id.

string $product_id: The id for the product of a store.

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 792

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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