Skip to content

Commit

Permalink
App now send a client ID in each request header.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Katchik committed Sep 19, 2016
1 parent 789fdf0 commit 397866c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/scenes/SceneBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ SceneSceneBrowser.loadDataRequest = function()
};
xmlHttp.open("GET", theUrl, true);
xmlHttp.timeout = SceneSceneBrowser.loadingDataTimeout;
xmlHttp.setRequestHeader('Client-ID', 'anwtqukxvrtwxb4flazs2lqlabe3hqv');
xmlHttp.send(null);
}
catch (error)
Expand Down
3 changes: 3 additions & 0 deletions app/scenes/SceneChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ SceneSceneChannel.updateStreamInfo = function()
};
xmlHttp.open("GET", 'https://api.twitch.tv/kraken/streams/' + SceneSceneBrowser.selectedChannel, true);
xmlHttp.timeout = 10000;
xmlHttp.setRequestHeader('Client-ID', 'anwtqukxvrtwxb4flazs2lqlabe3hqv');
xmlHttp.send(null);
};

Expand Down Expand Up @@ -528,6 +529,7 @@ SceneSceneChannel.loadDataRequest = function()
SceneSceneChannel.showDialog(dialog_title);

var xmlHttp = new XMLHttpRequest();

var theUrl;
if (SceneSceneChannel.state == SceneSceneChannel.STATE_LOADING_TOKEN)
{
Expand Down Expand Up @@ -565,6 +567,7 @@ SceneSceneChannel.loadDataRequest = function()
};
xmlHttp.open("GET", theUrl, true);
xmlHttp.timeout = SceneSceneChannel.loadingDataTimeout;
xmlHttp.setRequestHeader('Client-ID', 'anwtqukxvrtwxb4flazs2lqlabe3hqv');
xmlHttp.send(null);
}
catch (error)
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<BigListIcon>icon/icon_95_78.png</BigListIcon>
<category></category>
<autoUpdate>n</autoUpdate>
<ver>3.5</ver>
<ver>3.6</ver>
<mgrver></mgrver>
<fullwidget>y</fullwidget>
<type>user</type>
Expand Down

0 comments on commit 397866c

Please sign in to comment.