diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1a77c..f6a6944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release. +## 2.8.1 + +###Fixed + +- Added missing method to use all Mailing List and Ip features. + ## 2.8.0 ### Added diff --git a/src/Mailgun/Mailgun.php b/src/Mailgun/Mailgun.php index 63eb9ea..81d7602 100644 --- a/src/Mailgun/Mailgun.php +++ b/src/Mailgun/Mailgun.php @@ -11,6 +11,7 @@ namespace Mailgun; use Http\Client\Common\HttpMethodsClient; use Http\Client\HttpClient; +use Mailgun\Api\MailingList; use Mailgun\Connection\RestClient; use Mailgun\Constants\ExceptionMessages; use Mailgun\HttpClient\Plugin\History; @@ -382,6 +383,14 @@ class Mailgun return new Api\Message($this->httpClient, $this->requestBuilder, $this->hydrator); } + /** + * @return MailingList + */ + public function mailingList() + { + return new MailingList($this->httpClient, $this->requestBuilder, $this->hydrator); + } + /** * @return Api\Suppression */