Skip to content

Commit 71960f6

Browse files
author
Victor Burre
committed
Add 3 new methods
1 parent 3e88041 commit 71960f6

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

src/ApiClient.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,18 @@ public function listSenders()
602602
return $this->handleResult($requestResult);
603603
}
604604

605+
/**
606+
* List SMS senders
607+
*
608+
* @return mixed
609+
*/
610+
public function listSMSSenders()
611+
{
612+
$requestResult = $this->sendRequest('sms/senders');
613+
614+
return $this->handleResult($requestResult);
615+
}
616+
605617
/**
606618
* Add new sender
607619
*
@@ -707,6 +719,22 @@ public function getEmailGlobalInfo($email)
707719
return $this->handleResult($requestResult);
708720
}
709721

722+
/**
723+
* Get global information about list of emails
724+
*
725+
* @param array $emails Emails list
726+
* @return stdClass
727+
*/
728+
public function getEmailsGlobalInfo($emails) {
729+
if (empty($emails)) {
730+
return $this->handleError('Empty emails list');
731+
}
732+
733+
$requestResult = $this->sendRequest('emails', 'POST');
734+
735+
return $this->handleResult($requestResult);
736+
}
737+
710738
/**
711739
* Remove email from all books
712740
*
@@ -1129,6 +1157,21 @@ public function pushSetSubscriptionState($subscriptionID, $stateValue)
11291157
return $this->handleResult($requestResult);
11301158
}
11311159

1160+
/**
1161+
* Get common website info
1162+
*
1163+
* @param $websiteId
1164+
*
1165+
* @return mixed
1166+
*/
1167+
public function pushGetWebsiteInfo($websiteId)
1168+
{
1169+
$requestResult = $this->sendRequest('push/websites/info/' . $websiteId);
1170+
1171+
return $this->handleResult($requestResult);
1172+
}
1173+
1174+
11321175
/**
11331176
* Create new push campaign
11341177
*

0 commit comments

Comments
 (0)