The package can be installed
by adding oneflow_ex
to your list of dependencies in mix.exs
:
def deps do
[{:oneflow_ex, git: "https://github.com/gilacost/oneflow_ex.git"}}]
end
config :oneflow_ex,
token: "TOKEN",
secret: "SECRET",
log: true,
endpoint: "https://API-URL/api",
http: [] # these will be passed to hackney
{:ok, order} = OnflowEx.get("/order/ORDER-ID", %{})
{:ok, result} = OnflowEx.search("query", "shipments", ["status:shipped])
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/oneflow_ex.