Created
April 30, 2021 13:17
-
-
Save liamgriffin/821d663600cb0aa2ee56a1361825bf67 to your computer and use it in GitHub Desktop.
Implementing API Rate Limits
This file contains hidden or 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
then(({ errors, data, extensions, headers, status })) => { | |
console.log(JSON.stringify(data, undefined, 2)) | |
console.log(`There are ${extensions.cost.throttleStatus.currentlyAvailable} rate limit points available/n`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment