Nube learning to play with apis

$(document).ready(function(){

//make sure jquery library is working
$(“p”).append(“hello world”);
//declare stream array
var twitchers=[“dmbrandon”,“MedryBW”,“ESL_SC2”, “OgamingSC2”, “cretetion”, “freecodecamp”, “storbeck”, “habathcx”, “RobotCaleb”, “noobs2ninjas”];
//declare endpoint
var endPoint=“https://api.twitch.tv/helix/streams?user_id=”+twitchers;
//declare get method

$.ajax({
//headers:"user-id:my-twitch-id ",
url:endPoint,
dataType: ‘json’,
async:false,
type:‘GET’,
username:“my-twitch-id”,
password:“my-twitch-secret”,
success: function(data){
console.log(data);
},
error:function(error){
console.log("Your ERROR is: "+ error);
}
});

});