Plain

Library for commonly used requests with the Plain API, similar to the typescript SDK

Installation

If available in Hex, the package can be installed by adding plain to your list of dependencies in mix.exs:

def deps do
  [
    {:plain, "~> 0.1.0"}
  ]
end

Docs

The docs can be found at https://hexdocs.pm/plain.

Example

# config/config.exs
config :plain, token: "your_token_here"
Plain.getCustomerById(%{ customer_id: 'c_01GHC4A88A9D49Q30AAWR3BN7P' })