Python SDK for InTime API services.
Project description
InTime SDK
The objective of InTime SDK is to create, configure, and manage InTime services, such as Creating and Sending SMS's. The SDK provides an object-oriented API as well as low-level access to InTime services.
Installation
pip install intime-sdk
InTime SDK supports Python 3.6+.
Documentation
Instantiate the Messages class to send SMS
from intime_sdk import Messages
# initialize the Message class with required params
Messages(username='your-username', secret_key='your-secret-key').send_sms(
sender_title="test-sender",
message_body="Hello from Intime!!",
recipients=["+123456789"],
group_id="1",
)
Parameter Definition
send_sms()
:param sender_title: (String) Sender of the message. Use maximum 11 alphanumeric characters or 15 numeric chars.
Allowed alphanumeric chars is aA-zZ, 0-9, space, .(dot), -(binding char), or +(plus).
Only English characters are allowed.
:param message_body: (String) Message text.
SMS is allowed to contain a maximum of 160 characters. Multi-SMS is allowed to contain a maximum of
804 characters (6 SMS with 134 characters each).
:param recipients: (List) Phone number of the recipients to receive the message. At least one recipient or group
must be addressed.
:param group_id: (String) The groups Identification number.
:param is_flash_msg: (Boolean | Default: False) If this parameter is set to True, method will send a Flash
message (maximum 160 characters) and otherwise it will send a Normal message.
:param is_multi_sms: (Boolean | Default: False) If this parameter is set to True, method will send send up to
six SMS or 804 characters and otherwise it will send a Normal message.
:param send_date: (Optional; String | Default: None) Date/time for scheduled sending, If the message is to be
sent directly/right now, ignore this parameter. (Format: 2012-01-13T14:41:00)
:param status_url: (Optional; String | Default: None) URL for the server to send message status callbacks.
:param check_block_list: (Boolean | Default: False) If this parameter is set to True, method will check
the user's block list for group mailings.
:param encrypt_msg: (Boolean | Default: False) Flag that indicates whether the message should be encrypted after
it's sent. Sent messages cannot be read in Messenger.
:param trans_id: (Optional; String | Default: None) Value to send to the status url with the callback, this
could be a uniq id generated for each recipient and used in callback to link the status callback.
This is mandatory if status_url is used!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intime-sdk-1.0.2.tar.gz.
File metadata
- Download URL: intime-sdk-1.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad933afc83ca8a7954b6edafe5e2f716a3edcd720cd8416d8d3b23a6c5a58b2b
|
|
| MD5 |
a39d28be9e06ada25b4e1f3d3e7c41dc
|
|
| BLAKE2b-256 |
02483505e3475b62532c1dfe4957b77b4f677ff715d84caedb326390a91766c5
|
File details
Details for the file intime_sdk-1.0.2-py3-none-any.whl.
File metadata
- Download URL: intime_sdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77c7e27ac5b6ab2978d6b9cd34921aa6ebd37e9a97f51a141d8018e7b2e45090
|
|
| MD5 |
adfc90c9e2db7468a3037216b905b329
|
|
| BLAKE2b-256 |
4a2b34c60fbdcf136cb097cbebf2f7951f91b4a896c6836a7f74dcdb79e6e655
|