Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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

Importation

Ajouter la dépendence ci-dessous dans votre pom.xml

<dependency>
  <groupId>com.github.kevinsamyn.sportmonks-soccer-api</groupId>
  <artifactId>sportmonks-soccer-api</artifactId>
  <version>2.1.3.1</version>
  <classifier>jar-with-dependencies</classifier>
</dependency>

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

About

Simplify SportMonks Soccer API v2.0 Calling in Java

Resources

License

Releases

No releases published

Packages

No packages published

Languages