not gonna lie, someone's getting texts
hit the endpoint directly if you want to script it or build on top of this.
| param | required | description |
|---|---|---|
username |
yes | ngl username to send to |
messagetype |
yes | random or custom |
custommessage |
if custom | the message to send. ignored if type is random. |
howmuch |
yes | number of messages to send (1-50) |
returns JSON with the results of each send attempt.
{
"username": "someone",
"messagetype": "random",
"total": 3,
"sent": 2,
"failed": 1,
"results": [
{ "index": 1, "ok": true, "message": "Stay amazing!" },
{ "index": 2, "ok": true, "message": "Have a great day!" },
{ "index": 3, "ok": false, "message": "You're awesome!", "error": "..." }
]
}
| status | message |
|---|---|
| 400 | missing or invalid parameters |
| 500 | something broke on our end |
curl
curl "https://nglier.os7.site/api?username=johndoe&messagetype=custom&custommessage=hello&howmuch=1"
javascript
const res = await fetch(
"/api?username=johndoe&messagetype=random&howmuch=5"
);
const data = await res.json();
console.log(data.sent, "messages sent");