Last active
August 16, 2020 22:01
-
-
Save blissfulyoshi/d5b45514f0fe1d29758cf8775919beb2 to your computer and use it in GitHub Desktop.
Get Game_Id for AMQ from Twitch API
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
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