README.md

# Excontentstack

[![Hex.pm](https://img.shields.io/hexpm/v/excontentstack.svg)](https://hex.pm/packages/excontentstack)
[![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/excontentstack/)
[![Pipeline Status](https://git.developers.burberry.com/platform-services/content/content-stack/excontentstack/badges/main/pipeline.svg)](https://git.developers.burberry.com/platform-services/content/content-stack/excontentstack/-/pipelines)

Elixir wrapper for [Contentstack's](https://www.contentstack.com/) 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`:

```elixir
def deps do
  [
    {:excontentstack, "~> 0.3.0"}
  ]
end
```

Then run:

```bash
mix deps.get
```

## Configuration

You can configure Contentstack credentials in your config files:

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