Last active
June 16, 2016 10:34
-
-
Save mikael-titinovskii/fbd0680f817598f67c8d5c58ef9dad92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$phoneNumbers = [ | |
'phone1', | |
'phone2', | |
]; | |
$params = [ | |
'user' => 'user', | |
'password' => 'password', | |
'msisdn' => implode(',', $phoneNumbers), | |
'sid' => 1, | |
'msg' => 'test', | |
'fl' => 0, | |
'gwid' => 123 | |
]; | |
$apiURL = 'http://sms.vndsms.com/vendorsms/pushsms.aspx'; | |
$paramsQuery = http_build_query($params); | |
$fullURL = sprintf('%s?%s', $apiURL, $paramsQuery); | |
$response = json_decode(file_get_contents($fullURL), true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment