function live(Name) {
var clientID_ = "XYZ";
var channelID = 0;
var response = $.ajax({
method: "GET",
url: "https://api.twitch.tv/kraken/users/" + Name + "?client_id=" + clientID_,
success: function(data){
return data._id;
}
});
console.log(response);
}
made something like this, but get the hole “object” as callback back in the console.log