Skip to content

Commit b6c180d

Browse files
Duncan Rumbolddjrumbold
authored andcommitted
Update Mailchimp API version to 3.0.
1 parent 7928abd commit b6c180d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/mailchimp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
$token = $mailchimpService->requestAccessToken($_GET['code']);
4242

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

4646
header('Content-Type: application/json');
4747
echo $result; exit;

src/OAuth/OAuth2/Service/Mailchimp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function setBaseApiUri(StdOAuth2Token $token)
106106
$meta = json_decode($response, true);
107107

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

111111
// Allow chaining.
112112
return $this;

0 commit comments

Comments
 (0)