test

<?php
api_key = 'API KEY';

msg = json_encode(
    [
        'to' => 447857754521,
        'from' => "VoodooSMS",
        'msg' => "This is another test message",
        'schedule' => "3 weeks",
        'external_reference' => "Testing VoodooSMS",
        'sandbox' => true
    ]
);

ch = curl_init('https://api.voodoosms.com/sendsms');

curl_setopt(ch, CURLOPT_POST, true);
curl_setopt(ch, CURLOPT_HTTPHEADER, [
    'Authorization: ' . api_key
]);
curl_setopt(ch, CURLOPT_POSTFIELDS, msg);
curl_setopt(ch, CURLOPT_RETURNTRANSFER, true);

response = curl_exec(ch);

curl_close(ch);
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

0