Skip to content

Instantly share code, notes, and snippets.

@blissfulyoshi
Last active August 16, 2020 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blissfulyoshi/d5b45514f0fe1d29758cf8775919beb2 to your computer and use it in GitHub Desktop.
Save blissfulyoshi/d5b45514f0fe1d29758cf8775919beb2 to your computer and use it in GitHub Desktop.
Get Game_Id for AMQ from Twitch API
var header = {};
header['Client-ID'] = 'Client-ID';
header.Authorization = 'Bearer ' + 'oauth key';
//assume jquery is loaded
var submitRequest = $.ajax({
url: 'https://api.twitch.tv/helix/games?name=Anime%20Music%20Quiz',
type: "get",
headers: header
});
submitRequest.done(function (response, textStatus, jqXHR) {
console.log(response);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment