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