Skip to content

Sightline-Maps/voodoo-mfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Releases

No releases published

Packages

No packages published

Languages