-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/10/10 16:57, Lee Mr wrote:
> I wrote a twitter client with llib, but I do not know how to pass
> parameters.
> This is my codes:
> char *update_url="http://api.twitter.com/1/statuses/update.xml";;
> req_uri = oauth_sign_url2(update_url, NULL, OA_HMAC, NULL,
> customerKey, customerSecret,access_token,access_token_secret);
> char *response = oauth_http_get(req_uri,NULL);
> 
> 
> I want update my twitter, but return error.

http://dev.twitter.com/doc/post/statuses/update
says  "Supported request methods: POST"

char *postargs = NULL;
req_uri = oauth_sign_url2(update_url, &postargs, OA_HMAC, NULL,
customerKey, customerSecret,access_token,access_token_secret);
char *response = oauth_http_post(req_uri,postargs);
if (postargs) free(postargs);

HTH,
robn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyaqvgACgkQeVUk8U+VK0JqwwCgkiCLbNbKElY8hMIhCnT46oU9
0JYAoKB22sBWJ9n70PY2dC1ee4A8lMzM
=jq1w
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to oa...@googlegroups.com.
To unsubscribe from this group, send email to 
oauth+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/oauth?hl=en.

Reply via email to