Skip to main content

This package is an easy way to use send sms, email and voice(texto-to-speech) using Afilnet services

Project description

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.

Installation

You can use pip to install this package. Go to your terminal and run: pip install afilnet

Easy to use

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.

Available Services

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)

## SMS

  • sendSms(username, password, to, message, sender, scheduledatetime=””)

  • sendSmsFromTemplate(username, password, to, idTemplate, params, scheduledatetime=””)

  • sendSmsToGroup(username, password, sender, countryCode, idGroup, msg, scheduledatetime=””)

  • sendSmsToGroupFromTemplate(username, password, countryCode, idGroup, idTemplate, scheduledatetime=””)

## Email

  • sendEmail(username, password, subject, to, message, scheduledatetime=””):

  • sendEmailFromTemplate(username, password, to, idTemplate, params, scheduledatetime=””)

  • sendEmailToGroup(username, password, subject, idGroup, msg, scheduledatetime=””)

  • sendEmailToGroupFromTemplate(username, password, idGroup, idTemplate, scheduledatetime=””)

## Voice

  • sendVoice(username, password, to, message, lang=””, scheduledatetime=””)

  • sendVoiceFromTemplate(username, password, to, idTemplate, params, scheduledatetime=””)

  • sendVoiceToGroup(username, password, countryCode, idGroup, msg, scheduledatetime=””)

  • sendVoiceToGroupFromTemplate(username, password, countryCode, idGroup, idTemplate, scheduledatetime=””)

## User

  • getBalance(username, password)

  • isUser(username, password)

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

afilnet-1.0.1.zip (6.3 kB view details)

Uploaded Source

File details

Details for the file afilnet-1.0.1.zip.

File metadata

  • Download URL: afilnet-1.0.1.zip
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for afilnet-1.0.1.zip
Algorithm Hash digest
SHA256 aa51a67fba6f1219a53dae1e3e36107a6985ba4eb9aa39b946e2d290d32e4748
MD5 77b54c16e3e370b145b05ffced570d7b
BLAKE2b-256 0b6d5bb86db7d617b7495881fb1dc5cf5d28be9de98b59fb3f3f3a31d9ea56b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page