Python library that helps you send SMS using TextFlow API
Project description
Textflow python client
Installation
pip install textflowsms
Sample Usage
To send an SMS, you have to create an API key using the Textflow dashboard. When you register an account, you automatically get an API key with one free SMS which you can send anywhere.
Just send a message
import textflowsms as tf
tf.useKey("YOUR_API_KEY");
tf.sendSMS("+381611231234", "Dummy message text...")
Handle send message request result
result = tf.sendSMS("+381611231234", "Dummy message text...")
if(result.ok):
print(result.data)
else:
print(result.message)
Example result object of the successfully sent message
{
"ok": true,
"status": 200,
"message": "Message sent successfully",
"data": {
"to": "+381611231234",
"content": "Dummy message text...",
"country_code": "RS",
"price": 0.05,
"timestamp": 1674759108881
}
}
Example result object of the unsuccessfully sent message
{
"ok": false,
"status": 404,
"message": "API key not found"
}
Getting help
If you need help installing or using the library, please check the FAQ first, and contact us at admin@textflow.me if you don't find an answer to your question.
If you've found a bug in the API, package or would like new features added, you are also free to contact us!
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
textflowsms-0.0.5.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for textflowsms-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362c63779f25131dc2c9a9bb35f251892188679eff0d7810896bcc9b7ea4845f |
|
MD5 | 6aa7ca90c0d697208ff32536e77cbe51 |
|
BLAKE2b-256 | f4739ce293182ea7b831687b2e9d4f180038ceb2980491ebd89e1816abcdea6a |