365assistance / authy

Elixir library access to the Authy API
5 stars 6 forks source link

Authy

Build status

Elixir library access to the Authy API, based loosely on the ruby gem.

Features

Installation

  1. Add authy to your list of dependencies in mix.exs:

    def deps do
    [{:authy, github: "365assistance/authy"}]
    end
  2. Ensure authy is started before your application:

    def application do
    [applications: [:authy]]
    end
  3. Configure your api key and defaults for the various APIs

    config :authy,
    api_key: System.get_env("AUTHY_API_KEY")
    phone_verification: [
      via: "sms",
      country_code: "61",
      locale: "en-AU",
      custom_message: "Verification code, yo!"]