diff options
author | Ross Burton <ross@linux.intel.com> | 2009-04-27 15:57:45 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2009-04-27 15:58:39 +0100 |
commit | a75a105a6f8a88a9e8897618c8b64e78fe87bac0 (patch) | |
tree | f0cf37f6b640e2b61f790539c02951bb928b2c8a /examples | |
parent | 78eccb988e3168ea26b91d882983537f296ee80b (diff) |
Update OAuth example and test to new API
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test-oauth.c | 6 |
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"); |