forked from Edfa3ly/SMS-PHPSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
29 lines (21 loc) · 1.04 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require('Unifonic/Autoload.php');
use Unifonic\API\Client;
$client = new Client();
//Kindly note that the newly added sender ID must me approved by our system if you have any issue please contact our support team
try {
//$response = $client->Messages->Send(96650*******,'Hello','abcd'); // send regular massage
//$response = $client->Account->GetBalance();
//$response = $client->Account->getSenderIDStatus('Arabic');
//$response = $client->Account->getSenderIDs();
//$response = $client->Account->GetAppDefaultSenderID();
//$response = $client->Messages->Send('recipient','messageBody','senderName');
//$response = $client->Messages->SendBulkMessages('96650*******,9665*******','Hello','UNIFONIC');
//$response = $client->Messages->GetMessageIDStatus('9459*******');
//$response = $client->Messages->GetMessagesReport();
//$response = $client->Messages->GetMessagesDetails();
//$response = $client->Messages->GetScheduled();
//print_r($response);
} catch (Exception $e) {
echo $e->getCode();
}