Excontentstack

Hex.pmDocumentationPipeline Status

Elixir wrapper for Contentstack's Management API. A simple and idiomatic way to interact with Contentstack from Elixir applications.

Installation

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

def deps do
  [
    {:excontentstack, "~> 0.4.1"}
  ]
end

Then run:

mix deps.get

Configuration

You can configure Contentstack credentials in your config files:

# config.exs
config :excontentstack,
  management_token: System.get_env("CONTENTSTACK_MANAGEMENT_TOKEN"),
  api_key: System.get_env("CONTENTSTACK_API_KEY"),
  master_locale: "en"