You are here

public function MailchimpEcommerce::getCartLines in Mailchimp 8

Get information about a cart's line items.

Parameters

string $store_id: The unique identifier for the store.

string $cart_id: The unique identifier for the cart.

array $parameters: Associative array of optional request parameters.

Return value

object The API cart line response object.

See also

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

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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