Packages

Oneflow SDK that manages authentication and includes several structs for order management

Current section

Files

Jump to
oneflow lib config.ex
Raw

lib/config.ex

defmodule Oneflow.Config do
@endpoint "https://pro-api.oneflowcloud.com/api"
def endpoint() do
Application.get_env(:oneflow, :endpoint, @endpoint)
end
def token do
Application.get_env(:oneflow, :token, nil)
end
def secret do
Application.get_env(:oneflow, :secret, nil)
end
def log? do
Application.get_env(:oneflow, :log, true)
end
end