A Python library for sending SMS messages using Proovl API
Project description
proovl-sms
A Python library for sending SMS messages using Proovl API
Installation
Install using pip:
pip install proovl-sms
Parameters
The following parameters are required to send an SMS message:
user
: Your Proovl API user ID. You can obtain this from your Proovl account.token
: Your Proovl API authentication token. You can obtain this from your Proovl account.from_num
: The sender's name or phone number. This must be registered with Proovl. Leave this blank if you want to use the default sender name.
Usage:
from proovl_sms import Proovl
# Initialize Proovl with your Proovl user, token, and from number
proovl = Proovl(user='your_proovl_user', token='your_proovl_token', from_num='your_from_number')
# Send a single SMS message
response = proovl.send_sms(destination='destination_number', message='Hello, world!')
print(response)
Bulk SMS:
from proovl_sms import Proovl
# Initialize Proovl with your Proovl user, token, and from numbers
proovl = Proovl(user='your_proovl_user', token='your_proovl_token', from_num='your_from_number')
# Send a bulk SMS message
results = proovl.send_bulk_sms(destinations='destination1;destination2;destination3;destination4;destination5', message='Hello, world!')
for result in results:
print(result['number'], result['response'])
Credits
The proovl-sms package was developed by Tomas. You can obtain your own Proovl account and API credentials from proovl.com.
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
proovl-sms-0.1.4.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for proovl_sms-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5dfd8e97b5c03f45b053a426aba65002e4f7663b93362eda826edef2dd806b0 |
|
MD5 | 797c659ce2cc070a7f67bfdc8731768a |
|
BLAKE2b-256 | e2e3da328f127cd17b0b0f7627de2faabac13915297366a72899ec2a67147cfb |