You are here

public function MailchimpEcommerce::getCustomer in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpEcommerce.php \Mailchimp\MailchimpEcommerce::getCustomer()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php \Mailchimp\Tests\MailchimpEcommerce::getCustomer()

Get information about a specific customer.

Parameters

string $store_id: The ID of the store.

string $customer_id: The ID of the customer.

array $parameters: Associative array of optional request parameters.

Return value

object The API customer response object.

See also

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

1 call to MailchimpEcommerce::getCustomer()
MailchimpEcommerce::getCustomer in lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php
@inheritdoc
1 method overrides MailchimpEcommerce::getCustomer()
MailchimpEcommerce::getCustomer in lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php
@inheritdoc

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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