Skip to content

SirWerto/brawlex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brawlex

Api client for Brawl Stars API. You can view the docs here

Installation

Add brawlex to your list of dependencies in mix.exs:

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

Usage

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)

About

Brawl Stars API Client in Elixir

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages