From ac8f6dac645bb6187888e86d162e21ab828f6c93 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 14 Sep 2011 00:36:09 +0900 Subject: いくつかの API のパラメタ追加 --- twittperator.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 6997127..81967c3 100644 --- a/twittperator.js +++ b/twittperator.js @@ -28,7 +28,7 @@ let PLUGIN_INFO = Twittperator Twitter Client using OAuth and Streaming API OAuth/StreamingAPI対応Twitterクライアント - 1.14.3 + 1.15.0 2.3 teramako anekos @@ -1471,8 +1471,8 @@ let PLUGIN_INFO = }); }, // }}} getUserTimeline: function(target, onload) { // {{{ - let [api, query] = target ? ["statuses/user_timeline", {screen_name: target}] - : ["statuses/home_timeline", {}]; + let [api, query] = target ? ["statuses/user_timeline", {screen_name: target, count: setting.count}] + : ["statuses/home_timeline", {count: setting.count}]; tw.jsonGet( api, @@ -1794,7 +1794,7 @@ let PLUGIN_INFO = Utils.xmlhttpRequest({ method: 'GET', - url: "http://search.twitter.com/search.json?" + tw.buildQuery({ q: word }), + url: "http://search.twitter.com/search.json?" + tw.buildQuery({ q: word, rpp: setting.count, lang: setting.lang }), onload: function(xhr) { let res = JSON.parse(xhr.responseText); if (res.results.length > 0) { @@ -2342,6 +2342,8 @@ let PLUGIN_INFO = apiURLBase: "http" + (!!gv.twittperator_use_ssl_connection_for_api_ep ? "s" : "") + "://api.twitter.com/" + (gv.twittperator_twitter_api_version || 1) + "/", trackWords: gv.twittperator_track_words, + count: (gv.twittperator_count || 20), + lang: (gv.twittperator_lang || ''), }); let statusRefreshTimer; -- cgit v1.2.3