Skip to main content

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


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.8.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

proovl_sms-0.1.8-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file proovl-sms-0.1.8.tar.gz.

File metadata

  • Download URL: proovl-sms-0.1.8.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for proovl-sms-0.1.8.tar.gz
Algorithm Hash digest
SHA256 eb9f59ba9eee6aa9b7e083527e6201b46f307fc2a2132e388b2056efc61f74eb
MD5 6cb30a5147862a6efa104ee0e6437340
BLAKE2b-256 82ef9a717775cf707bf8eefb78189c9532485a206bd7c3ddff050a9147f53be3

See more details on using hashes here.

File details

Details for the file proovl_sms-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: proovl_sms-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for proovl_sms-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2f74f77e14bcbdbf1534adc9ad1ff6224bde9fdebfdf84454c01b94de130704f
MD5 41b60d9653f5147043df7a49303238ce
BLAKE2b-256 99b9e37c2a746c3f8064037d86f9169f69b3ee807cb7b56318909f3d132654b0

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