forked from ideabizlk/IdeaBiz-Request-Handler---PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
35 lines (29 loc) · 735 Bytes
/
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
29
30
31
32
33
34
35
<?php
/**
* Created by PhpStorm.
* User: Malinda
* Date: 3/23/2015
* Time: 11:20 PM
*/
include 'IdeaBizAPIHandler.php';
$auth = new IdeaBizAPIHandler();
$body = '{
"outboundSMSMessageRequest": {
"address": [
"tel:+94777339033"
],
"senderAddress": "94770777555",
"outboundSMSTextMessage": {
"message": "Test Message"
},
"clientCorrelator": "123456",
"receiptRequest": {
"notifyURL": "http://128.199.174.220:1080/sms/report",
"callbackData": "some-data-useful-to-the-requester"
},
"senderName": "87770"
}
}';
$url = "https://ideabiz.lk/apicall/smsmessaging/v1/outbound/94777339033/requests";
$a = $auth->sendAPICall($url,RequestMethod::POST,$body);
var_dump($a);