Skip to main content

taqnyat package for python SMS

Project description

Taqnyat Python

Packagist Packagist

Documentation

The documentation for Taqnyat API can be found here.

The PHP library documentation can be found here.

Versions

Taqnyat this is a beta version of Taqnyat to support the Python technology , and we will continue adding more features to support the Python community.

Supported Python Versions

Taqnyat library supports Python 3.0+.

Installation

You can install Taqnyat-Python via pip CLI or by downloading the source.

Via PIP CLI:

Taqnyat-Python is available on Packagist as the taqnyat package:

pip install taqnyat==1.0

Quickstart

Get Services status

import Client from TaqnyatSms

bearer = '**************************0adc2b'
taqnyt = client(bearer)
status = taqnyt.sendStatus();

print status;

Get the account balance and status

import Client from TaqnyatSms

bearer = '**************************0adc2b'
ttaqnyt = client(bearer)
balance = taqnyt.balance();

print balance;

Get the account senders

import Client from TaqnyatSms

bearer = '**************************0adc2b'
taqnyt = client(bearer)
senders = taqnyt.senders();

print senders;

Send an SMS

# Sending a SMS using Taqnyat API and Python is easy as the following:

import Client from TaqnyatSms

bearer = '**************************0adc2b'

body = 'message Content';
recipients = ['966********'];
sender = 'Sender Name';
scheduled=''

taqnyt = client(bearer)
message = taqnyt.sendMsg(body, recipients, sender,scheduled);

print message;

Send a schedule SMS

# Sending a SMS using Taqnyat API and Python is easy as the following:

import Client from TaqnyatSms

bearer = '**************************0adc2b'
body = 'message Content';
recipients = ['966********'];
sender = 'Sender Name';
scheduled='dd/mm/yyyy hh:mm:ss'

taqnyt = client(bearer)
message = taqnyt.sendMsg(body, recipients, sender,scheduled);

print message;

Getting help

If you need help installing or using the library, please send us email to Taqnyat Team .

If you've instead found a bug in the library or would like new features added, go ahead and send us email , we are welcoming to any suggestion any time

[Run on Repl.it]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Taqnyat-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file Taqnyat-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: Taqnyat-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for Taqnyat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a55dfabd8502adf6d06399e941adee7873061cbfc67f5d183e878187825de73e
MD5 2c29610770aeaa116013d8c28199ba74
BLAKE2b-256 e4551a2b023375a16bd5dbc56d7196f70e62b1fd316c2f43bcbecf747171b4b4

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