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
[ | |
{ | |
"show_title": "Stranger Things", | |
"show_title_url": "https://reelgood.com/show/stranger-things-2016", | |
"show_maturity_rating": "Rated: 14+ (TV-14)", | |
"show_genre": "Drama, Fantasy, Horror, Mystery, Science Fiction, Thriller, Action & Adventure", | |
"show_length": "30m", | |
"show_year": 2016, | |
"show_imdb": "8,8", | |
"show_description": "When a young boy vanishes, a small town uncovers a mystery involving secret experiments, terrifying supernatural forces, and one strange little girl.", |
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
/* | |
Assuming jQuery Ajax instead of vanilla XHR | |
*/ | |
//Get Github Authorization Token with proper scope, print to console | |
$.ajax({ | |
url: 'https://api.github.com/authorizations', | |
type: 'POST', | |
beforeSend: function(xhr) { | |
xhr.setRequestHeader("Authorization", "Basic " + btoa("USERNAME:PASSWORD")); |