Skip to content

Commit

Permalink
Displaying options to enable user stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Feb 21, 2011
1 parent a0a3a57 commit 7e3ed2a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _locales/en/messages.json
Expand Up @@ -671,10 +671,16 @@
"trending_topics": {
"message": "Trends"
},
"g_trending_topics":{
"g_trending_topics": {
"message": "Trending Topics"
},
"l_trending_topics_woeid":{
"l_trending_topics_woeid": {
"message": "Trending Topics Locale:"
},
"l_use_streaming_api": {
"message": "Use streaming API (experimental!):"
},
"l_user_stream_url": {
"message": "User Stream URL:"
}
}
1 change: 1 addition & 0 deletions lib/twitter_lib.js
Expand Up @@ -67,6 +67,7 @@ TwitterLib.prototype = {

var xhr = new XMLHttpRequest();
xhr.open('GET', url + '?' + $.param(params), true);
xhr.setRequestHeader('X-User-Agent', 'Chromed Bird ' + JSON.parse(Persistence.version().val()).join('.'));
this.signOauth(xhr, url, params, 'GET');

var _this = this;
Expand Down
7 changes: 7 additions & 0 deletions options.html
Expand Up @@ -581,6 +581,7 @@ <h1 class="i18n" id="options_title">Chromed Bird Options</h1>

<fieldset>
<legend class="i18n" id="g_advanced">Advanced</legend>

<label for="request_timeout" class="i18n" id="l_request_timeout">Request Timeout (ms):</label>
<input type="text" name="request_timeout" validator="required,number,positive" must_restart><br>
<label for="base_url" class="i18n" id="l_base_url">Twitter's API URL:</label>
Expand All @@ -598,6 +599,12 @@ <h1 class="i18n" id="options_title">Chromed Bird Options</h1>

<label for="base_search_url" class="i18n" id="l_base_search_url">Search API URL:</label>
<input type="text" name="base_search_url" style="width: 300px;" validator="required,url" must_restart><br>

<label for="use_streaming_api" class="i18n" id="l_use_streaming_api">Use streaming API:</label>
<input type="checkbox" name="use_streaming_api"><br>

<label for="user_stream_url" class="i18n" id="l_user_stream_url">User Stream URL:</label>
<input type="text" name="user_stream_url" style="width: 300px;" validator="required,url" must_restart><br>
</fieldset>

<br>
Expand Down

0 comments on commit 7e3ed2a

Please sign in to comment.