php script for smsgatway textbee.dev http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev php script for smsgatway textbee.dev http://xigge.com en daily 1 php script for smsgatway textbee.dev http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev admin http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev
PHP version 7 or higher

$API_KEY = 'API_KEY';
$DEVICE_ID = 'DEVICE_ID';

$url = "https://api.textbee.dev/api/v1/gateway/devices/$DEVICE_ID/send-sms";

$data = [
    "recipients" => ["PHONE_NR"],
    "message" => "MESSAGE_HERE"
];

$headers = [
    "Content-Type: application/json",
    "x-api-key: $API_KEY"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Curl error: ' . curl_error($ch);
} else {
    echo $response;
}

curl_close($ch);

]]>
PHP version 7 or higher

$API_KEY = 'API_KEY';
$DEVICE_ID = 'DEVICE_ID';

$url = "https://api.textbee.dev/api/v1/gateway/devices/$DEVICE_ID/send-sms";

$data = [
    "recipients" => ["PHONE_NR"],
    "message" => "MESSAGE_HERE"
];

$headers = [
    "Content-Type: application/json",
    "x-api-key: $API_KEY"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Curl error: ' . curl_error($ch);
} else {
    echo $response;
}

curl_close($ch);

]]>
http://xigge.com/rss.xml.php?id=34 1
. http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev admin http://xigge.com/c.php?editid1=34&t=php_script_for_smsgatway_textbee.dev http://xigge.com/rss.xml.php?id=34 1