项目作者: podium

项目描述 :
An Elixir library for interfacing with the Podium API
高级语言: Elixir
项目地址: git://github.com/podium/podium_ex.git
创建时间: 2018-11-19T19:19:20Z
项目社区:https://github.com/podium/podium_ex

开源协议:MIT License

下载


PodiumEx

A library for interfacing with the Podium API. Documentation can be found on HexDocs.

Installation

The package can be installed by adding podium_ex to your list of dependencies in mix.exs:

  1. def deps do
  2. [
  3. {:podium_ex, "~> 0.7"}
  4. ]
  5. end

Then run mix deps.get to download it.

Configuration

You will need to provide the following configuration options (usually in config/config.exs). It is recommended to use environment variables in production to avoid committing secrets in your repository. However, environment variables will cause problems if you are generating releases with distillery or exrm. Configuration should include:

  • :api_key - The API key given to you by Podium.
  • :application_uid - The ID given to you by Podium.

You can optionally also include the following:

  • :base_url - The root URL onto which all paths are appended. Defaults to https://api.podium.com/api/v2

Example Configuration

  1. config :podium_ex,
  2. api_key: "podiumisthebestever",
  3. application_uid: "abc098-1234abc-1234abcdefgh"