User ID -> Username Retrieval

Hi,

I did, here is the code I added - what is wrong with it?

window.Twitch.ext.onAuthorized(function(auth) {
console.log(‘The JWT that will be passed to the EBS is’, auth.token);
console.log(‘The channel ID is’, auth.channelId);
console.log(auth);

    var parts=auth.token.split(".");
    var payload=JSON.parse(window.atob(parts[1]));
    if (payload.user_id) {
        // user has granted
        $.ajax({
            url: 'https://api.twitch.tv/kraken/users/' + payload.user_id + "?client-id=2wo1au2eakivi3mww1cmjts5eraj2p",
            method: "get",
            headers: {
                "Client-ID":"2wo1au2eakivi3mww1cmjts5eraj2p"
            },
            success: function(data){
                console.log(data);
            }

        });

    } else {
        // user has NOT granted
    }

});