Tried to fix it by myself, but doesn't work. Maybe someone has an idea.
function twitch(){ $.ajax({ url: 'https://api.twitch.tv/helix/users/follows', dataType: 'json', type: 'GET', data:{ 'to_id': settings.twitch_username, 'Client-ID': twitch_client_id, 'accept': 'application/vnd.twitchtv.v5+json' }, success: function(data) { var followers = parseInt(data.total); var k = kFormatter(followers); $('#wrapper .item.twitch .count').append(k); $('#wrapper .item.twitch').attr('href','https://www.twitch.tv/'+settings.twitch_username+'/profile'); getTotal(followers); } }); }
Tried to fix it by myself, but doesn't work. Maybe someone has an idea.
function twitch(){ $.ajax({ url: 'https://api.twitch.tv/helix/users/follows', dataType: 'json', type: 'GET', data:{ 'to_id': settings.twitch_username, 'Client-ID': twitch_client_id, 'accept': 'application/vnd.twitchtv.v5+json' }, success: function(data) { var followers = parseInt(data.total); var k = kFormatter(followers); $('#wrapper .item.twitch .count').append(k); $('#wrapper .item.twitch').attr('href','https://www.twitch.tv/'+settings.twitch_username+'/profile'); getTotal(followers); } }); }