Simple API Request based SMS blaster with the use of CSV
- clone this repo
- run
npm install
- setup
.env
according to.env.example
- run
npm start
You can directly send a batch SMS request. However, do take note of the request timeout period imposed by your PaaS provider or server framework and adjust the number of records per request accordingly.
POST /send
body:
{
"campaign": STRING - a name that will be used for client-ref
"records": [
{
"uuid": STRING - identifier,
"to": STRING - recipient mobile number,
"text": STRING - SMS text,
},
{
"uuid": STRING - identifier,
"to": STRING - recipient mobile number,
"text": STRING - SMS text,
},
...
]
}
[
{
"message-count": STRING - see Vonage SMS API Documentation,
"messages": [
{
"to": STRING - see Vonage SMS API Documentation,
"message-id": STRING - see Vonage SMS API Documentation,
"status": STRING - see Vonage SMS API Documentation,
"remaining-balance": STRING - see Vonage SMS API Documentation,
"message-price": STRING - see Vonage SMS API Documentation,
"network": STRING - see Vonage SMS API Documentation,
},
...
],
"uuid": STRING - identifier,
"to": STRING - recipient mobile number,
"text": STRING - SMS text,
}
]
Vonage SMS API Documentation: https://developer.nexmo.com/api/sms?theme=dark#send-an-sms
- CSV Template (
mobile_number,text_body
) - Send the CSV file via
POST
to{HOST}/upload
with file parameterfile
. - Blaster will start to blast.
6512341234,This is a text
6556785678,This is another text