diff options
author | mattn | 2008-06-20 07:04:23 +0000 |
---|---|---|
committer | mattn | 2008-06-20 07:04:23 +0000 |
commit | fdc24888276a46008068cd243cfc05eb3fbb46b7 (patch) | |
tree | ef8f9472dabfca6cd7ea3f9de507b2e671e1f640 /twitter.js | |
parent | 9d77084f6f507b7158d1dffa3eecb8236d6c1631 (diff) | |
download | vimperator-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.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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);
|