africastalking_elixir v0.1.0 AfricastalkingElixir.Sms

Send SMS using the AfricasTalking messaging api.

Link to this section Summary

Functions

send_sms/3 function expects a list of options, e.g. options = [username: "sandbox", to: "+256700183633", message: "Hello World!"], with the following fields in order to send an SMS

Link to this section Functions

Link to this function

send_sms(options \\ [], api_key, env)

send_sms/3 function expects a list of options, e.g. options = [username: "sandbox", to: "+256700183633", message: "Hello World!"], with the following fields in order to send an SMS:

  1. username (Your africastalking app username. If using africastalking sanbox environment, username is "sandbox").
  2. to (Phone number your sending message to)
  3. message (the actual message)

When in production you have to provide the env variable to send_sms/3 function