/py-zenvia-sms

Package for send sms by Zenvia API

Primary LanguagePythonMIT LicenseMIT

PyZenvia

Build Status Code Health Coverage Status

Package for send sms by Zenvia API

To use it is necessary to set two environment variables, one for the authentication key of Zenvia and another to set BASE_URL. The BASE_URL must be set because you can test the messages in a Zenvia test url

Installation

Prerequisites

  • Python version 3.4, 3.5 or 3.6
  • Your account and password
$ pip install pyzenvia

Usage

from pyzenvia import Sender
sender = Sender(account, password)
response = sender.send(phone, message)
print(response['success'])
print(response['result'])