https://github.com/abdulrahmandaud10/tilil-sms-api
A quick step by step guide on how to send bulk and premium messages using an application interface (API) using Golang
https://github.com/abdulrahmandaud10/tilil-sms-api
golang json sms-api
Last synced: about 2 months ago
JSON representation
A quick step by step guide on how to send bulk and premium messages using an application interface (API) using Golang
- Host: GitHub
- URL: https://github.com/abdulrahmandaud10/tilil-sms-api
- Owner: AbdulrahmanDaud10
- Created: 2023-04-12T10:33:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T08:07:50.000Z (over 2 years ago)
- Last Synced: 2024-06-21T20:07:04.663Z (about 2 years ago)
- Topics: golang, json, sms-api
- Language: Go
- Homepage: https://tililtechnologies.co.ke
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TILIL-SMS-API
A quick step by step guide on how to send bulk and premium messages using an application interface (API). It has been made simple to enable a quick integration into Tilil technologies bulk messaging services.
## BULK MESSAGING
```
Required endpoints:
const (
TILIL_SMS_ENDPOINT = "https://api.tililtech.com/sms/v3/sendsms"
TILIL_API_KEY = " "
SENDER_ID = "2513"
)
```
Edit the variables to your preference
### SMS Request Body:
Below is a sample sendsms JSON data:
```json
{
"api_key": "{{Test API Key}}",
"service_id": 0,
"mobile": "0708400000",
"response_type": "json",
"shortcode": "Tilil",
"message": "This is a message.\n\nRegards\nTilil"
}
```
### SMS Responses Body:
SMS Response(s):
```json
1.Success
[
{
"status_code": "1000",
"status_desc": "Success",
"message_id": 288369252,
"mobile_number": "254708400000",
"network_id": "1",
"message_cost": 1,
"credit_balance": 148
}
]
2.Failed
[
{
"status_code": "1003",
"status_desc": "Invalid mobile number",
"message_id": "0",
"mobile_number": "123",
"network_id": "",
"message_cost": "",
"credit_balance": ""
}
]
```
## REMINDER
The api key provided above is for a demo purpose, visit the official website https://tililtechnologies.co.ke/ to create an account acquire the neccessary shortcodes, senderID important data and information required.