aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2013-04-06 18:22:02 +0900
committeranekos2013-04-06 18:22:02 +0900
commit37f3071e579fbe36deaf17c2513a6619707eab45 (patch)
tree90b6134fff349ec45ebaf48b4a25e5b31c92fba8 /twittperator.js
parent862198772d1b50822d888bae4d13d3ee8aa69740 (diff)
parent443904bbc0d49e6da3c80319e063e0c8bb258c4c (diff)
downloadvimperator-plugins-37f3071e579fbe36deaf17c2513a6619707eab45.tar.bz2
Merge branch 'master' into 3.6
for master updates Conflicts: lo.js twittperator.js
Diffstat (limited to 'twittperator.js')
-rw-r--r--twittperator.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/twittperator.js b/twittperator.js
index ef28958..604503c 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -2,7 +2,7 @@
* The MIT License
*
* Copyright (c) 2010 teramako
- * Copyright (c) 2010-2012 anekos
+ * Copyright (c) 2010-2013 anekos
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@
// INFO {{{
let INFO = xml`
- <plugin name="Twittperator" version="1.19.0"
+ <plugin name="Twittperator" version="1.19.1"
href="https://github.com/vimpr/vimperator-plugins/raw/master/twittperator.js"
summary="Twitter Client using OAuth and Streaming API">
<author email="teramako@gmail.com" href="http://d.hatena.ne.jp/teramako/">teramako</author>
@@ -174,7 +174,7 @@ let INFO = xml`
Write the plugin.
</p>
</plugin>
- <plugin name="Twittperator" version="1.19.0"
+ <plugin name="Twittperator" version="1.19.1"
href="https://github.com/vimpr/vimperator-plugins/raw/master/twittperator.js"
lang="ja"
summary="OAuth/StreamingAPI対応Twitterクライアント">
@@ -1642,7 +1642,7 @@ let INFO = xml`
});
}, // }}}
favorite: function(id) { // {{{
- tw.jsonPost("favorites/create/" + id, null, function(res) {
+ tw.jsonPost("favorites/create", {id: id}, function(res) {
res = Utils.fixStatusObject(res);
Twittperator.echo("fav: " + res.user.name + " " + res.text)
});
@@ -2043,7 +2043,7 @@ let INFO = xml`
liberator.echo(new TemplateXML(html), true);
}, // }}}
showTwitterMentions: function(arg) { // {{{
- tw.jsonGet("statuses/mentions", null, function(res) {
+ tw.jsonGet("statuses/mentions_timeline", null, function(res) {
Twittperator.showTL(res.map(Utils.fixStatusObject));
});
}, // }}}
@@ -2655,7 +2655,7 @@ let INFO = xml`
proxyPort: gv.twittperator_proxy_port,
screenName: gv.twittperator_screen_name,
apiURLBase: "http" + (!!gv.twittperator_use_ssl_connection_for_api_ep ? "s" : "") +
- "://api.twitter.com/" + (gv.twittperator_twitter_api_version || 1) + "/",
+ "://api.twitter.com/" + (gv.twittperator_twitter_api_version || "1.1") + "/",
trackWords: gv.twittperator_track_words,
count: (gv.twittperator_count || 20),
lang: (gv.twittperator_lang || ''),