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 committed May 8, 2018
1 parent fc11a53 commit d3132c1
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 d3132c1

Please sign in to comment.