Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.44 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.44 KB

Voodoo Manufacturing for Elixir

An HTTP client for the Voodoo Manufacturing API.

Installation

Soon to be available at hex.pm. The package can be installed as:

Add voodoo to your list of dependencies in mix.exs:

def deps do
  [{:voodoo_mfg, "~> 0.1.0"}]
end

Ensure voodoo is started before your application:

def application do
  [applications: [:voodoo_mfg]]
end

Configuration

And add configuration to config.exs:

use Mix.Config

config :voodoo_mfg,
  secret_key: System.get_env("VOODOO_SECRET_KEY"),
  api_host: System.get_env("VOODOO_HOST")

For local development and testing, the host should be:

https://staging-api.voodoomfg.com/api/1

For production, the host should be:

https://api.voodoomfg.com/api/1

Examples

Examples can be found inline with the function in the file for each module: