pyBlueVia is an Apache2 Licensed library, written in Python, for making easier the usage of BlueVia API.
pyBlueVia implements an Api class which wraps the BlueVia API, offering methods for:
Managing OAuth 2.0 authorization process for APIs which need an access token.
Sending SMS and MMS.
Asking for the delivery status of sent SMS/MMS.
Retrieve SMS/MMS sent to your app.
Parsing notifications (delivery status and incoming SMS/MMS) coming from BlueVia.
Installation
To install pyBlueVia:
$ pip install pyBlueVia
Examples
Those are a couple of examples about how to use pyBlueVia to send an SMS and query its delivery status:
# Create the API wrapper
bluevia_client = bluevia.Api(CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN)
# Send an SMS
sms_id = bluevia_client.send_sms(to='34600000000', message='Hello world!')
# Ask for the delivery status of the sent SMS
delivery_status = bluevia_client.get_sms_delivery_status(sms_id)
print 'Delivery status for the SMS sent to {0}: {1}'.format(delivery_status['address'],
delivery_status['status'])
You can see more usage examples here.
Take a look to the whole documentation at https://pybluevia.readthedocs.org/.
Metadata
Release files for pyBlueVia 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyBlueVia-0.1.0.tar.gz | 12.9 kB | Details |
Release files / pyBlueVia-0.1.0.tar.gz
| Download URL | pyBlueVia-0.1.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be7e658e5210c17c9361e0f1b22f25a5d3ae85ec59a533c4c3386f9c9374aaf6
|
|
BLAKE2b-256 checksum How to use checksums |
b6e70c4a70f09718f2e0789525334f2aef850359505269a752c6a27ddf6ea79d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |