Socket
Socket
Sign inDemoInstall

pyBlueVia

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pyBlueVia

A Python wrapper around the BlueVia API.


Maintainers
1

Readme

pyBlueVia: A Python wrapper around the BlueVia API

pyBlueVia is an Apache2 Licensed library, written in Python, for making easier the usage of BlueVia <http://bluevia.com>_ 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:

.. code-block:: bash

$ pip install pyBlueVia

Examples

Those are a couple of examples about how to use pyBlueVia to send an SMS and query its delivery status:

.. code-block:: python

# 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 <https://github.com/telefonicaid/pyBlueVia/tree/master/examples>_.

Take a look to the whole documentation at https://pybluevia.readthedocs.org/.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc