summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-04-27 15:57:45 +0100
committerRoss Burton <ross@linux.intel.com>2009-04-27 15:58:39 +0100
commita75a105a6f8a88a9e8897618c8b64e78fe87bac0 (patch)
treef0cf37f6b640e2b61f790539c02951bb928b2c8a /examples
parent78eccb988e3168ea26b91d882983537f296ee80b (diff)
downloadlibrest-a75a105a6f8a88a9e8897618c8b64e78fe87bac0.tar.gz
Update OAuth example and test to new API
Diffstat (limited to 'examples')
-rw-r--r--examples/test-oauth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/test-oauth.c b/examples/test-oauth.c
index 5438502..1d56d28 100644
--- a/examples/test-oauth.c
+++ b/examples/test-oauth.c
@@ -43,7 +43,7 @@ main (int argc, char **argv)
"https://fireeagle.yahooapis.com/%s", TRUE);
/* First stage authentication, this gets a request token */
- oauth_proxy_auth_step (OAUTH_PROXY (proxy), "oauth/request_token");
+ oauth_proxy_auth_step (OAUTH_PROXY (proxy), "oauth/request_token", NULL);
/* From the token construct a URL for the user to visit */
g_print ("Go to https://fireeagle.yahoo.net/oauth/authorize?oauth_token=%s then hit any key\n",
@@ -51,8 +51,8 @@ main (int argc, char **argv)
getchar ();
/* Second stage authentication, this gets an access token */
- oauth_proxy_auth_step (OAUTH_PROXY (proxy), "oauth/access_token");
-
+ oauth_proxy_auth_step (OAUTH_PROXY (proxy), "oauth/access_token", NULL);
+
/* We're now authenticated */
g_print ("Got access token\n");