aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
authormattn2008-06-20 07:04:23 +0000
committermattn2008-06-20 07:04:23 +0000
commitfdc24888276a46008068cd243cfc05eb3fbb46b7 (patch)
treeef8f9472dabfca6cd7ea3f9de507b2e671e1f640 /twitter.js
parent9d77084f6f507b7158d1dffa3eecb8236d6c1631 (diff)
downloadvimperator-plugins-fdc24888276a46008068cd243cfc05eb3fbb46b7.tar.bz2
GETからPOSTに修正(API制限回避)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@14289 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/twitter.js b/twitter.js
index 1319a47..38ea2e1 100644
--- a/twitter.js
+++ b/twitter.js
@@ -49,7 +49,7 @@
}
function showTwitterReply(username, password){
var xhr = new XMLHttpRequest();
- xhr.open("GET", "http://twitter.com/statuses/replies.json", false, username, password);
+ xhr.open("POST", "http://twitter.com/statuses/replies.json", false, username, password);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(null);
var statuses = window.eval(xhr.responseText);
@@ -78,9 +78,9 @@
var xhr = new XMLHttpRequest();
var endPoint = target ? "http://twitter.com/statuses/user_timeline/" + target + ".json"
: "http://twitter.com/statuses/friends_timeline.json";
- xhr.open("GET", endPoint, false, username, password);
+ xhr.open("POST", endPoint, false, username, password);
// for debug
- //xhr.open("GET", "http://twitter.com/statuses/user_timeline/otsune.json", false, username, password);
+ //xhr.open("POST", "http://twitter.com/statuses/user_timeline/otsune.json", false, username, password);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(null);
var statuses = window.eval(xhr.responseText);