0.0.32 • Published 7 years ago

rtsmunity-public-api-sdk v0.0.32

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
7 years ago

Node.js PULL API SDK

You need to have API key and client certificate to use this SDK.

Installation

For Node.js

npm

npm install rtsmunity-public-api-sdk --save

Getting Started

Please follow the installation instruction and execute the following JS code:

var RTSmunitySDK = require('rtsmunity-public-api-sdk');

var API_KEY = 'YOUR-API-KEY'
var KEY_PATH = 'PATH_TO_YOUR_CLIENT_KEY'
var CERT_PATH = 'PATH_TO_YOUR_CLIENT_CRT'
var PASSPHRASE = 'PASSPHRASE_FOR_YOUR_CLIENT_KEY'

var api = RTSmunitySDK.init(API_KEY, KEY_PATH, CERT_PATH, PASSPHRASE, RTSmunitySDK.MODE.SANDBOX)

api.sports.getSports((err, sports) => {
  if (err) {
    console.log('Unable to get sports')
    console.log(err)
  } else {
    console.log('Sports:')
    console.log(sports)
  }
})

Documentation for API Endpoints

All URIs are relative to https://localhost

ClassMethodHTTP requestDescription
api.leaguesgetLeaguesGET /{sport}/leaguesList All Leagues
api.liveMatchesgetMatchFeedGET /{sport}/live/matches/{id}/feedMatch feed
api.liveMatchesgetMatchStateGET /{sport}/live/matches/{id}/stateMatch state
api.liveMatchesgetMatchStatisticsFeedGET /{sport}/live/matches/{id}/statistics/feedMatch statistics feed
api.liveMatchesgetMatchStatisticsStateGET /{sport}/live/matches/{id}/statistics/stateMatch statistics state
api.liveMatchesgetMatchesGET /{sport}/live/matchesList All Live Matches
api.liveSeriesgetSeriesGET /{sport}/live/seriesList All Live Series
api.liveSeriesgetSeriesFeedGET /{sport}/live/series/{id}/feedSeries feed
api.liveSeriesgetSeriesStateGET /{sport}/live/series/{id}/stateSeries state
api.marketsgetMarketCloseTimesGET /{sport}/market/close_timesList All Markets close times
api.marketsgetMarketResolveTimesGET /{sport}/market/resolve_timesList All Markets resolve times
api.marketsgetMarketSelectionsGET /{sport}/market/selectionsList All Selections
api.marketsgetMarketStatesGET /{sport}/market/statesList All Markets states
api.marketsgetMarketsGET /{sport}/marketsList All Markets
api.matchesgetMatchPositionsGET /{sport}/match/positionsList All Match positions
api.matchesgetMatchStatesGET /{sport}/match/statesList All Matches states
api.matchesgetMatchesGET /{sport}/matchesList All Matches in Series
api.playersgetPlayersGET /{sport}/playersList All Players
api.seriesgetSeriesGET /{sport}/seriesList All Series for tournament
api.seriesgetSeriesStateGET /{sport}/series/states/{id}Get concrete Series state
api.seriesgetSeriesStatesGET /{sport}/series/statesList All Series states
api.seriesgetSeriesTypesGET /{sport}/series/typesList All Series types
api.sportsgetSportsGET /sportsList All Sports
api.teamsgetTeamsGET /{sport}/teamsList All Teams
api.tournamentsgetTournamentsGET /{sport}/tournamentsList All Tournaments
0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago