Elixir wrapper for Appfigures API based on Tesla library.
Appfigures provides a RESTful way to interact with reports and account data. More about API.
Setup ExFigures
client:
client = ExFigures.client(
username: "username",
password: "password",
client_key: "key"
)
And proceed to querying:
{:ok, response} = ExFigures.Products.list_mine(client)
response.status # => 200
response.body # => [%{...}, ...]
If available in Hex, the package can be installed
by adding ex_figures
to your list of dependencies in mix.exs
:
def deps do
[
{:ex_figures, "~> 0.1.0"}
]
end
Documentation be found at https://hexdocs.pm/ex_figures.