summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-08-03 13:37:05 +0100
committerRoss Burton <ross@linux.intel.com>2009-08-03 13:37:05 +0100
commit20ec023af480b98806d0c60db967982a69828a94 (patch)
tree2ff979a711623a884397118a31b9ef8b714c4e13 /examples
parent8a17f4e83690952b854c3f04afd4a49667070bbb (diff)
Update post-twitter to reflect the new API
Diffstat (limited to 'examples')
-rw-r--r--examples/post-twitter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/post-twitter.c b/examples/post-twitter.c
index 3d0a5ce..5c477b8 100644
--- a/examples/post-twitter.c
+++ b/examples/post-twitter.c
@@ -56,10 +56,8 @@ main (int argc, char **argv)
fgets (pin, sizeof (pin), stdin);
g_strchomp (pin);
- oauth_proxy_set_verifier (OAUTH_PROXY (proxy), pin);
-
/* Second stage authentication, this gets an access token */
- if (!oauth_proxy_access_token (OAUTH_PROXY (proxy), "oauth/access_token", &error))
+ if (!oauth_proxy_access_token (OAUTH_PROXY (proxy), "oauth/access_token", pin, &error))
g_error ("Cannot request token: %s", error->message);
/* We're now authenticated */