mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-25 22:36:06 +03:00
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:
parent
4a3024f211
commit
27db5897c0
@ -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
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user