GithubHelp home page GithubHelp logo

shawon1fb / cricket-entity-sport-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from entitysport/cricket-entity-sport-node

0.0 1.0 0.0 75 KB

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

JavaScript 100.00%

cricket-entity-sport-node's Introduction

cricket-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_cricket = require("./cricket/index.js");

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

entity.cricket.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)

get perticular Match Innings Commentary API get_matches_inning_commentry(mid,inning_num,args={})

get perticular Fantasy Match Roaster API get_matches_fantacy_roaster(cid,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) and get_players_stats(pid,args={})

get icc ranking for player iccranks get_cricket_iccranks(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.cricket.update_token('YOUR_API_KEY','YOUR_SECRET_KEY') and get new token and expire copy them.

cricket-entity-sport-node's People

Contributors

entitysport avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.