Skip to content

Instantly share code, notes, and snippets.

@liamgriffin
Created April 30, 2021 13:17
Show Gist options
  • Save liamgriffin/821d663600cb0aa2ee56a1361825bf67 to your computer and use it in GitHub Desktop.
Save liamgriffin/821d663600cb0aa2ee56a1361825bf67 to your computer and use it in GitHub Desktop.
Implementing API Rate Limits
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