Skip to content

Commit 0193225

Browse files
authored
Merge pull request #30 from Emirii/smtpListEmails-fix
Fix smtpListEmails method to include required 'country' parameter.
2 parents 2ca5e89 + 05754aa commit 0193225

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/ApiClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,11 @@ public function getBalance($currency = '')
858858
* @param string $toDate
859859
* @param string $sender
860860
* @param string $recipient
861+
* @param string $country
861862
*
862863
* @return mixed
863864
*/
864-
public function smtpListEmails($limit = 0, $offset = 0, $fromDate = '', $toDate = '', $sender = '', $recipient = '')
865+
public function smtpListEmails($limit = 0, $offset = 0, $fromDate = '', $toDate = '', $sender = '', $recipient = '', $country = 'off')
865866
{
866867
$data = array(
867868
'limit' => $limit,
@@ -870,6 +871,7 @@ public function smtpListEmails($limit = 0, $offset = 0, $fromDate = '', $toDate
870871
'to' => $toDate,
871872
'sender' => $sender,
872873
'recipient' => $recipient,
874+
'country' => $country,
873875
);
874876

875877
$requestResult = $this->sendRequest('/smtp/emails', 'GET', $data);

src/ApiInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,16 @@ public function getBalance($currency = '');
248248
* @param string $toDate
249249
* @param string $sender
250250
* @param string $recipient
251+
* @param string $country
251252
*/
252253
public function smtpListEmails(
253254
$limit = 0,
254255
$offset = 0,
255256
$fromDate = '',
256257
$toDate = '',
257258
$sender = '',
258-
$recipient = ''
259+
$recipient = '',
260+
$country = 'off'
259261
);
260262

261263
/**

0 commit comments

Comments
 (0)