Skip to content

Commit

Permalink
contributing + v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightbr committed Sep 6, 2016
1 parent a3f23b4 commit 6213e35
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CONTRIBUTING

* [Contributing to Open Source guide](https://guides.github.com/activities/contributing-to-open-source/)

## Steps

1. Create an Issue
2. Pull Request
3. Merge \o/

## ToDo

☐ Moar unit tests!!
☐ Fix workaround to update User's email address (waiting for MailChimp API V3 update)
☐ Commands options for full sync, merge fields sync, webhook register (listId, ...)
☐ Compatibility with Symfony 3
☐ Spec documentation (http://phpdox.de/)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "welp/mailchimp-bundle",
"description": "MailChimp API V3 Symfony Bundle",
"version": "1.0.0-dev",
"version": "1.0.0",
"type": "symfony-bundle",
"homepage": "https://github.com/welpdev/mailchimp-bundle",
"license": "MIT",
Expand Down
17 changes: 17 additions & 0 deletions src/Subscriber/ListRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,23 @@ public function batchDelete($listId, array $emails)
return $batchIds;
}

/**
* Get Members of a list
* @param String $listId
* @return Array
*/
public function getMembers($listId)
{
$emails = [];
$result = $this->mailchimp->get("lists/$listId/members");

if(!$this->mailchimp->success()){
throw new \RuntimeException($this->mailchimp->getLastError());
}

return $result;
}

/**
* Get an Array of subscribers emails from a list
* @param String $listId
Expand Down

0 comments on commit 6213e35

Please sign in to comment.