curl -X POST https://api.cloudsmsbd.com/v1/send-sms \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \
-d '{
"sender_id": "CLOUDSMS",
"mobile": "8801711000000",
"message": "Your verification code is 492018. Valid for 5 minutes.",
"type": "unicode"
}'
<?php
$apiKey = "YOUR_API_KEY_HERE";
$payload = [
"sender_id" => "CLOUDSMS",
"mobile" => "8801711000000",
"message" => "Your order #5821 is confirmed on E-Shop BD!",
];
$ch = curl_init("https://api.cloudsmsbd.com/v1/send-sms");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Authorization: Bearer " . $apiKey
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
import axios from 'axios';
const sendSms = async () => {
const res = await axios.post('https://api.cloudsmsbd.com/v1/send-sms', {
sender_id: 'CLOUDSMS',
mobile: '8801711000000',
message: 'Cloud SMS BD Node SDK integration test successful.'
}, {
headers: { Authorization: 'Bearer YOUR_API_KEY_HERE' }
});
console.log(res.data);
};
sendSms();
import requests
payload = {
"sender_id": "CLOUDSMS",
"mobile": "8801711000000",
"message": "Hello from Python Bulk SMS script!"
}
headers = {"Authorization": "Bearer YOUR_API_KEY_HERE"}
r = requests.post("https://api.cloudsmsbd.com/v1/send-sms", json=payload, headers=headers)
print(r.json())