-
Notifications
You must be signed in to change notification settings - Fork 0
/
sms.php
30 lines (26 loc) · 816 Bytes
/
sms.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
<?php
// STEP 1
// prepare necessary parameters
$client_id = 'apisignup';
$username = 'vowteam10';
$password = '6B8GE4iD';
$from = '5455';
$to = '9851142041'; // change this no as u want
$text = 'keto hamro first sms hai';
// STEP 2
// build the url
$api_url = "http://api.sparrowsms.com/call_in.php?" .
http_build_query(array(
"client_id" => $client_id,
"username" => $username,
"password" => $password,
"from" => $from,
"to" => $to,
"text" => $text
));
// STEP 2
// put the request to server
$response = file_get_contents($api_url);
// check the response and verify
print_r($response);
?>