public function MailchimpEcommerce::getProductVariants in Mailchimp 8
Get information on all variants of a specific product.
Parameters
string $store_id: The store ID.
string $product_id: The product ID.
Return value
object The API product variant response object.
Throws
\Mailchimp\MailchimpAPIException
See also
http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...
File
- lib/
mailchimp-api-php/ src/ MailchimpEcommerce.php, line 994
Class
- MailchimpEcommerce
- Mailchimp Ecommerce library.
Namespace
MailchimpCode
public function getProductVariants($store_id, $product_id) {
$tokens = [
'store_id' => $store_id,
'product_id' => $product_id,
];
return $this
->request('GET', '/ecommerce/stores/{store_id}/products/{product_id}/variants', $tokens);
}