Elixir Client for SportMonk API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

ExSportmonks

Elixir Client for Soccer Sportmonks API 2.0 at https://www.sportmonks.com/products/soccer/docs/2.0

Installation

The package can be installed by adding ex_sportmonks to your list of dependencies in mix.exs:

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

API Key

Register for an API key and add it to the environment variable

export SPORT_MONK_TOKEN="your api key here"

Usage

All endpoints in https://www.sportmonks.com/products/soccer/docs/2.0 are supported.

Get leagues from sportmonks:

ExSportmonks.leagues()

Get first 100 leagues with country from sportmonks:

ExSportmonks.leagues(%{include: "country", page: 1})

For more information, please check the API