Api client for Brawl Stars API. You can view the docs here
Add brawlex
to your list of dependencies in mix.exs
:
def deps do
[
{:brawlex, "~> 0.1.0"}
]
end
First of all, you need a Token binding to your current IP. Get one here https://developer.brawlstars.com.
Second, this is an application, so it is necesary to start it before start doing requests.
Go to mix.exs and append it:
def application do
[
extra_applications: [:logger, :brawlex],
]
end
and now you are ready to use it:)
{:ok, token_id} = File.read("token.txt")
{:ok, tpid} = Brawlex.open_connection(token_id)
Brawlex.get_brawlers(tpid)