You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pykeccelsms

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pykeccelsms

A Python SDK for the Keccel Messaging API for sms in the DRC.

0.2
Source
pipPyPI
Maintainers
1

KECCEL MESSAGING

Keccel Service Manager is a very simple but powerful SMS Gateway built for developers who just want to send SMS in the DR Congo at a very affordable cost. Both requests and responses are transmitted in JSON format.

SENDING AN SMS

Method: POST

URL: https://api.keccel.com/sms/v2/message.asp

Request ParameterDescriptionExample
toReceiver phone number243851234567
messageMessage bodyHello world
fromName that will appear on the phone as the sender of the SMSKECCEL, GUEST
tokenYour API key that will be provided by Keccel84hbYi6TU8Zu

All parameters are mandatory.

Note: In GUEST or trial modes, the SMS will be displayed as coming from KECCEL. In production, you need to provide an appropriate name to use as the sender of the SMS, such as the name of your application or your company.

Response ParameterDescriptionExample
statusStatus of the messageRejected, Sent
messageIDThe ID of the sent message123456 (used for Delivery Receipt)
descriptionA string describing the status or errorInvalid token, Message submitted to the network

Example Request

{
 "token":"84hbYi6TU8Zu",
 "to":"243851234567",
 "from":"GUEST",
 "message":"Hello World"
}

Response Delivery Report

{
 "status": "SENT",
 "messageID": "123456",
 "description": "Message submitted to the network"
}

DELIVERY REPORTS

This service allows you to receive the delivery status of a previous sent message. There is NO delivery report for rejected messages. The delivery can be automatically sent to your callback (PUSH) or you can retrieve it (PULL) from our server.

PUSH: Automatic Delivery

If the Delivery Reports (DLR) are required, you need to provide a callback URL where an automatic HTTP request will be sent with the previous messageID and the delivery status of the message (DELIVERED or FAILED). The DLR receipt will be sent to your URL as below: http(s)://yourcallbackurl?messageID=123456&status=DELIVERED

PULL: Delivery Check

You can also send a request to our delivery endpoint to check on the delivery status of a previous sent message: Method: GET

URL: https://api.keccel.com/sms/v2/delivery.asp

Request ParameterDescriptionExample
fromName that will appear on the phone as the sender of the SMSKECCEL, GUEST
tokenYour API key that will be provided by Keccel84hbYi6TU8Zu
messageidThe ID of the message which status is requested123456
Response ParameterDescriptionExample
messageidThe messageID value as requested123456
statusStatus of the messageDELIVERED, FAILED (or Error

BALANCE CHECK

This request is used to get the amount of the remaining SMS credits and the expiration date of a designated account. Method: GET

URL: https://api.keccel.com/sms/v2/balance.asp

Request ParameterDescriptionExample
fromName that will appear on the phone as the sender of the SMSKECCEL, GUEST
tokenYour API key that will be provided by Keccel84hbYi6TU8Zu
Response ParameterDescriptionExample
balanceNumber of remaining credits645
expirationExpiration. No SMS will be sent after this date and time31-Dec-2021 06:46:17
statusStatus of the accountActive, inactive

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts