This package is an easy way to use send sms, email and voice(texto-to-speech) using Afilnet services
This package is designed to be an easy way to use Afilnet API services. You can send SMS, email and voice notifications using your Afilnet account.
You only need an Afilnet account with enought credits. If you do not have an account, you can create it in a few minutes.
You can use pip to install this package. Go to your terminal and run: pip install afilnet
You only need to call the module urls.py + service:
res = afilnet.sendSMS("MyAfilnetUsername", "MyAfilnetPassword", "To", "This is a test message", "From")
Then you will receive the result in json.
There are 4 channels availables: - General - SMS - Email - Voice
This library use the structure:
res = afilnet.service(params)
General has two services: - getBalance (Get balance of your account) - isUser (Return if user is valid or not) This service return a boolean
SMS, Email and Voice have the same services: - send (Send to a single user) - sendFromTemplate (Send to a single user using a template) - sendToGroup (Send to a defined group) - sendToGroupFromTemplate (Send to a defined group using a template) - getDeliveryStatus (Get delivery status of a message)