Skip to content

Instantly share code, notes, and snippets.

@mikael-titinovskii
Last active June 16, 2016 10:34
Show Gist options
  • Save mikael-titinovskii/fbd0680f817598f67c8d5c58ef9dad92 to your computer and use it in GitHub Desktop.
Save mikael-titinovskii/fbd0680f817598f67c8d5c58ef9dad92 to your computer and use it in GitHub Desktop.
<?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