Add method to get access to Mailing List API endpoints (#554)

* Add method to get access to Mailing List API endpoints

* Prepare for 2.8.1

* Update CHANGELOG.md
This commit is contained in:
David Garcia 2019-02-02 07:13:33 +00:00 committed by Tobias Nyholm
parent 4a3024f211
commit 27db5897c0
2 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,12 @@
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release. 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 ## 2.8.0
### Added ### Added

View File

@ -11,6 +11,7 @@ namespace Mailgun;
use Http\Client\Common\HttpMethodsClient; use Http\Client\Common\HttpMethodsClient;
use Http\Client\HttpClient; use Http\Client\HttpClient;
use Mailgun\Api\MailingList;
use Mailgun\Connection\RestClient; use Mailgun\Connection\RestClient;
use Mailgun\Constants\ExceptionMessages; use Mailgun\Constants\ExceptionMessages;
use Mailgun\HttpClient\Plugin\History; use Mailgun\HttpClient\Plugin\History;
@ -382,6 +383,14 @@ class Mailgun
return new Api\Message($this->httpClient, $this->requestBuilder, $this->hydrator); 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 * @return Api\Suppression
*/ */