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]]
endConfiguration
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/1For production, the host should be:
https://api.voodoomfg.com/api/1Examples
Examples can be found inline with the function in the file for each module: