aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2013-07-16 22:30:31 +0200
committerrsudev <rasch@munin-soft.de>2013-07-16 22:30:31 +0200
commita7f4987c8e1887b045c701fd8a622652d3848fec (patch)
treeafd2c078340e31a8d444d396eb5f49ca44c9b34c
parent304b6cb5d0c59bbdba7cf4849bc8531e55500841 (diff)
downloadcgeo-a7f4987c8e1887b045c701fd8a622652d3848fec.zip
cgeo-a7f4987c8e1887b045c701fd8a622652d3848fec.tar.gz
cgeo-a7f4987c8e1887b045c701fd8a622652d3848fec.tar.bz2
Fixes #3002 - Tweet not tweeted
Twitter api v1.0 seems to be deprecated for tweeting (Auth worked fine). Now using v1.1.
-rw-r--r--main/src/cgeo/geocaching/twitter/Twitter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/twitter/Twitter.java b/main/src/cgeo/geocaching/twitter/Twitter.java
index f30830e..c69d560 100644
--- a/main/src/cgeo/geocaching/twitter/Twitter.java
+++ b/main/src/cgeo/geocaching/twitter/Twitter.java
@@ -35,8 +35,8 @@ public final class Twitter {
"display_coordinates", "true");
}
- OAuth.signOAuth("api.twitter.com", "/1/statuses/update.json", "POST", false, parameters, Settings.getTokenPublic(), Settings.getTokenSecret());
- final HttpResponse httpResponse = Network.postRequest("http://api.twitter.com/1/statuses/update.json", parameters);
+ OAuth.signOAuth("api.twitter.com", "/1.1/statuses/update.json", "POST", false, parameters, Settings.getTokenPublic(), Settings.getTokenSecret());
+ final HttpResponse httpResponse = Network.postRequest("http://api.twitter.com/1.1/statuses/update.json", parameters);
if (httpResponse != null && httpResponse.getStatusLine().getStatusCode() == 200) {
Log.i("Tweet posted");
} else {