Skip to content

Commit

Permalink
Update Mailchimp API version to 3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Rumbold authored and djrumbold committed Oct 22, 2018
1 parent 7928abd commit b6c180d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit b6c180d

Please sign in to comment.