Live Score Cricket

// This code sample © CricketData is made for use with CricketData API only
// You will need to get the API Key from your CricketData account and
// Replace %APIKEY% with your API key to ensure that this functions
// We presume you know the programming language, and the guide is made accordingly
window.fetch(“https://api.cricapi.com/v1/cricScore?apikey=%APIKEY%”)
.then(result => result.json())
.then(result => {
console.log(“We have the result”,result);
})
.catch(err => {
console.log(“An error occured. Please check your code”,err);
});