Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
Revert directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel250 committed Oct 13, 2014
1 parent a71ad26 commit c625c17
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions src/Services/MailChimp.php → Services/MailChimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ class MailChimp
*/
public function __construct($apiKey, $listId, $ssl = true)
{
trigger_error("API v1 has being deprecated by MailChimp. A new version of this bundle is being work on.", E_USER_DEPRECATED);

$this->apiKey = $apiKey;
$this->listId = $listId;

$key = preg_split("/-/", $this->apiKey);

if($ssl) {
$this->dataCenter ='https://' . $key[1] . '.api.mailchimp.com/';
$this->dataCenter ='https://' . $key[1] . '.api.mailchimp.com/2.0/';
}else {
$this->dataCenter ='http://' . $key[1] . '.api.mailchimp.com/';
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c625c17

Please sign in to comment.