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

On 09/23/10 03:18, Robin Gareus wrote:
> 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,
> robin

Oh and as Lasantha pointed out: your update_url needs to include a
status parameter:

char *update_url="http://api.twitter.com/1/statuses/update.xml?status=XXXX";;

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

iEYEARECAAYFAkyaq6cACgkQeVUk8U+VK0K3NgCgtlyOhS/Y0Jkjk99Q5qk/m+Jr
2LwAnRj5InFqXoPbtYvrWAanpGgS+og8
=i6n5
-----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