Elixir Client for Soccer Sportmonks API 2.0 at https://www.sportmonks.com/products/soccer/docs/2.0
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
Register for an API key and add it to the environment variable
export SPORT_MONK_TOKEN="your api key here"
All endpoints in https://www.sportmonks.com/products/soccer/docs/2.0 are supported.
ExSportmonks.leagues()
ExSportmonks.leagues(%{include: "country", page: 1})
For more information, please check the API