Skip to main content

An SDK to help send messages through the zettatel API

Project description

Zetattel

An SDK to help send messages through the zettatel API

Usage

Quick sms

to use this package, you can either git clone or install using pip:

pip install zettatel==0.1.3.1

This will install all the required packages. Next we need to initialize the packacge as shown below:

from zettatel.message import Client

message = Client(
    "username",
    "password",
    "senderId"
)

To send a quick message use the following sample:

message.send_quick_SMS('254712345678', "this is test from python package")

To send a scheduled quick sms :

message.send_quick_smartlink_sms(
    '254712345678', "this is test from python package",scheduleTime = '2023-09-16 13:24')

Group SMS

  1. To send message to a group:
message.send_group_sms("group name","message")
  1. To send a scheduled group sms
message.send_group_scheduled_sms("group name","message","scheduledTime eg 2023-09-16 13:24")

Delivery Status

  1. Get delivery status by transaction ID:
message.delivery_status_by_transactionid("transactionid: int")
  1. Get message delivery report of a particular day:
message.delivery_status_by_day("date")
  1. Get overal delivery report summary:
message.delivery_status_by_summary()

Sender ID

to get your sender Id use :


res = message.get_senderID()
print(res.text)

Groups

  1. To create a group:

message.create_group("groupname")

  1. To get all the groups:

message.get_groups()

  1. To update a group:

message.update_group("newgroupname","groupid")

Contacts

This are teh contacts that will be available in the specified groups.

  1. To create conntacts:

message.create_contact("contact name","mobile number","group id")

  1. To update contact:

message.update_contact("contact name","mobile number","group id")

  1. To get all the contacts in a group:

message.get_contact("group name")


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zettatel-0.1.3.1.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file zettatel-0.1.3.1.tar.gz.

File metadata

  • Download URL: zettatel-0.1.3.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for zettatel-0.1.3.1.tar.gz
Algorithm Hash digest
SHA256 de10759a9bcd7c54a7ce34e09ca0c8c2585a4eeb50ff4c4f3e9eec39cd287caa
MD5 ae285bea357fa87d8881e9f104183ef5
BLAKE2b-256 8467e68c484f3cb58d1e3c32cfe80954bd1d4cec5f07c18290b823453dd38cd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page