Created
January 5, 2022 06:07
-
-
Save kgravenreuth/3cdf3f7a2f785b876fc3fd65266ea094 to your computer and use it in GitHub Desktop.
Cloudbet Market Helper getSport function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getSport(sportKey) { | |
return fetch(`https://sports-api.cloudbet.com/pub/v2/odds/sports/${sportKey}`, { | |
headers: { | |
"X-Api-Key": "", | |
"cache-control": "max-age=600" | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment