Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
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.
README.md
get_all_functions.js
index.js
package-lock.json
package.json

README.md

soccer-entity-sport-node

firstly you have to put authentication data api_token and token_expires. Than You can further access of sport data. for example

const Entity_soccer = require("./soccer/index.js");

var entity = new Entity_soccer({api_token:'XXXXXXXXXXXXXX',token_expires:'XXXXXXX'})

entity.soccer.get_competitions_data().then((data) => { console.log(data); }).catch((error) => { console.log(error); })

/////// for get data for all season call get_seasons_data() for get data for perticular season call get_seasons_data(sid,args)...sid eg- 2018,18-19,etc.

for get data for all competitions call get_competitions_data(cid=0,args) here args use for filter data you get. Like paged,per_page,status with those variables. status status code 1 = upcoming, 2 = result, 3 = live.

get perticular competition info with stats ,squads , matches call get_competitions_data(cid,args) this get_competition_matches(cid), get_competition_statstic(cid)

for get data for all metches call get_matches_data(mid=0,args={}) here args use for filter data you get. Like paged,per_page,status with those variables. status status code 1 = upcoming, 2 = result, 3 = live.

get perticular metches info with stats , fantacy call get_matches_stats(mid,args) get_matches_fantasy(mid,args)

for get data for all teams call get_teams_data(tid=0,args) for get data for all teams maches call get_teams_maches(tid,args)

for get data for all players call get_players_data(pid=0,args) for get data for plater profile call get_players_data(pid,args)

If you do not send the id(like sid,cid ,mid ,tid,pid) than you get all data other perticular id info. args = {per_page:10 ,paged:20); where paged is which page u wana get data

** important when your token is expire. Than call entity.soccer.update_token('YOUR_API_KEY','YOUR_SECRET_KEY') and get new token and expire copy them.

You can’t perform that action at this time.