summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2010-08-17 18:53:38 +0100
committerRoss Burton <ross@linux.intel.com>2010-08-17 18:57:33 +0100
commitd944eebee6cf4200d547648b5fd6d022cc3e9208 (patch)
tree28d67d82e0f3bc7ef05055f74ff9b7a70021e72f /examples
parentbbbc896db5ad1364ab29538354d522087c26001d (diff)
post-twitter: use the correct URL endpoint
Diffstat (limited to 'examples')
-rw-r--r--examples/post-twitter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/post-twitter.c b/examples/post-twitter.c
index 385d4bd..04c8d89 100644
--- a/examples/post-twitter.c
+++ b/examples/post-twitter.c
@@ -42,7 +42,7 @@ main (int argc, char **argv)
/* Create the proxy */
proxy = oauth_proxy_new ("UfXFxDbUjk41scg0kmkFwA",
"pYQlfI2ZQ1zVK0f01dnfhFTWzizBGDnhNJIw6xwto",
- "https://twitter.com/", FALSE);
+ "https://api.twitter.com/", FALSE);
/* First stage authentication, this gets a request token */
if (!oauth_proxy_request_token (OAUTH_PROXY (proxy), "oauth/request_token", "oob", &error))
@@ -63,7 +63,7 @@ main (int argc, char **argv)
/* Post the status message */
call = rest_proxy_new_call (proxy);
- rest_proxy_call_set_function (call, "statuses/update.xml");
+ rest_proxy_call_set_function (call, "1/statuses/update.xml");
rest_proxy_call_set_method (call, "POST");
rest_proxy_call_add_param (call, "status", argv[1]);