From 17d4912238d182064764be51923f8b9e2ef9c450 Mon Sep 17 00:00:00 2001 From: Yuya YAGUCHI Date: Tue, 5 Mar 2013 16:52:04 +0900 Subject: Modified Twitter API version --- twittperator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 0da88e8..73b4a1c 100644 --- a/twittperator.js +++ b/twittperator.js @@ -2659,7 +2659,7 @@ let INFO = 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 || ''), -- cgit v1.2.3 From e1f90b9e6073c4d2235202522c0ad12809423ee7 Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 15 Mar 2013 23:20:30 +0900 Subject: Twitter API 1.1 に対応なの? --- twittperator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 73b4a1c..914f3bf 100644 --- a/twittperator.js +++ b/twittperator.js @@ -2049,7 +2049,7 @@ let INFO = liberator.echo(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)); }); }, // }}} -- cgit v1.2.3 From 263de388a4395cf5afd63c950b6f64a126162632 Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 15 Mar 2013 23:41:51 +0900 Subject: Twitter API 1.1 対応じゃねーの? --- twittperator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 914f3bf..1173693 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 @@ -26,7 +26,7 @@ // INFO {{{ let INFO = <> - teramako @@ -175,7 +175,7 @@ let INFO = Write the plugin.

- @@ -1643,7 +1643,7 @@ let INFO = }); }, // }}} 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) }); -- cgit v1.2.3