aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
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);