Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$token = $mailchimpService->requestAccessToken($_GET['code']);

// Send a request with it
$result = $mailchimpService->request('/users/profile.json');
$result = $mailchimpService->request('/');

header('Content-Type: application/json');
echo $result; exit;
Expand Down
2 changes: 1 addition & 1 deletion src/OAuth/OAuth2/Service/Mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function setBaseApiUri(StdOAuth2Token $token)
$meta = json_decode($response, true);

// Set base api uri.
$this->baseApiUri = new Uri('https://'. $meta['dc'] .'.api.mailchimp.com/2.0/');
$this->baseApiUri = new Uri('https://'. $meta['dc'] .'.api.mailchimp.com/3.0/');

// Allow chaining.
return $this;
Expand Down