freelixir v0.1.0 Freelixir

Module that give access to Free Mobile API with Elixir.

You first need to activate “Notifications par SMS” option on Free Mobile website.

https://mobile.free.fr/moncompte/index.php?page=options

Summary

Functions

send_sms(list)

Send SMS

Parameters

  • user: Your login.
  • password: Your identification string.
  • message: The content of the SMS.

Examples

$ Freelixir.send_sms(user: "_user_", password: "_password_", message: "Hello World !")
{:ok, "SMS was sent successfully"}

$ Freelixir.send_sms(user: "_fake_user_", password: "_password_", message: "Hello World !")
{:error, %{code: 403, message: "You didn't activate the service « Notifications par SMS »"}}