Simplify SportMonks Soccer API v2.0 Calling in Java
Switch branches/tags
Nothing to show
Clone or download
kevinsamyn Merge pull request #3 from choxxy/master
PreMatchOddsEndPoint Fixes
Latest commit 67f7a1a Feb 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/com/sportmonks Fixed findByFixtureAndBookmaker calling wrong endpoint, Feb 8, 2018
.gitignore Refactoring LivescoreDTOs Jul 21, 2017
LICENSE Initial commit Jun 6, 2017
README.md Création du README Jun 6, 2017
pom.xml Fix unique endpoint methods Jul 6, 2017
soccer-api.iml Fix correct points Jul 21, 2017

README.md

sportmonks-soccer

Simplify SportMonks Soccer API v2.0 Calling in Java

Objectif

Cette bibliothèque à pour but de faciliter l'utilisation de l'API Soccer de Sportmonks.com

Utilisation

1 - Récupération d'une instance du client

final APIClient instance = APIClient.getInstance(API_TOKEN);

2 - Récupération d'un end point

final PreMatchOddsEndPoint ep = instance.getPreMatchOddsEndPointInstance();

3 - Parametrage de l'appel

final PreMatchOddsEndPointParams params = new PreMatchOddsEndPointParams();
params.setFixtureId(MATCH_ID);

4 - Appel de l'API

final List<Offer> offers = proxy.findByFixture(params);

Liste des end points disponibles

  • LeaguesEndPoint
  • ContinentsEndPoint
  • CountriesEndPoint
  • LivescoresEndPoint
  • CommentariesEndPoint
  • FixturesEndPoint
  • PreMatchOdssEndPoint
  • InPlayOddsEndPoint
  • SeasonsEndPoint
  • PlayersEndPoint
  • StandingsEndPoint
  • TeamsEndPoint
  • VideoHighlightsEndPoint
  • TvStationsEndPoint