aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-09-07 08:24:33 +0000
committeranekos2010-09-07 08:24:33 +0000
commit24ab6704c62978f3b8c2fe20cba512ff34be624f (patch)
tree06e7012f519097226d13f0a7b77ed9ad8699505d
parent60e826b2bd36f77e0da62e1b01de9515a38324a2 (diff)
downloadvimperator-plugins-24ab6704c62978f3b8c2fe20cba512ff34be624f.tar.bz2
put に関して revert
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38433 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-xtwittperator.js36
1 files changed, 2 insertions, 34 deletions
diff --git a/twittperator.js b/twittperator.js
index a9f962c..bde554e 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -28,7 +28,7 @@ let PLUGIN_INFO =
<name>Twittperator</name>
<description>Twitter Client using ChirpStream</description>
<description lang="ja">OAuth対応Twitterクライアント</description>
- <version>1.4.2.3.4.5.6.7.8.9.10.11.12.13</version>
+ <version>1.4.3.8.0.3.8.0</version>
<minVersion>2.3</minVersion>
<maxVersion>2.4</maxVersion>
<author mail="teramako@gmail.com" homepage="http://d.hatena.ne.jp/teramako/">teramako</author>
@@ -1110,38 +1110,6 @@ let PLUGIN_INFO =
};
Utils.xmlhttpRequest(options); // 送信
},
- put: function(api, content, callback) {
- var message = {
- method: "PUT",
- action: setting.apiURLBase + api,
- parameters: {
- oauth_signature_method: "HMAC-SHA1",
- oauth_consumer_key: this.accessor.get("consumerKey", ""),
- oauth_token: this.accessor.get("token", "") // Access token
- }
- };
- // 送信するデータをパラメータに追加する
- for (var key in content) {
- message.parameters[key] = content[key];
- }
- OAuth.setTimestampAndNonce(message);
- OAuth.SignatureMethod.sign(message, this.getAccessor());
- var target = OAuth.addToURL(message.action, message.parameters);
- var options = {
- method: message.method,
- url: target,
- onload: function(d) {
- if (d.status == 200) {
- if (callback) {
- callback(d.responseText);
- }
- } else {
- callback(d);
- }
- }
- };
- Utils.xmlhttpRequest(options); // 送信
- },
delete: function(api, content, callback) {
var btquery = query ? "?" + this.buildQuery(query) : "";
var message = {
@@ -1492,7 +1460,7 @@ let PLUGIN_INFO =
}, // }}}
retweet: function(id) { // {{{
let url = "statuses/retweet/" + id + ".json";
- tw.put(url, null, function(text) {
+ tw.post(url, null, function(text) {
let res = Utils.fixStatusObject(JSON.parse(text));
Twittperator.echo("Retweet: " + res.retweeted_status.text);
});