google-code-export / twitcurl

Automatically exported from code.google.com/p/twitcurl
1 stars 1 forks source link

Patches for various fixes and additions #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I started working on a project which uses twitcurl a few weeks ago.
In doing so, I made a number of changes to twitcurl, most of which I've 
included here.

In reference to the patch file names:
ssl: Allows selection of either http or https in the same way as XML/Json can 
be selected. The verifycred patch depends on this.

verifycred: Adds a method to call account/verify_credentials, this is useful 
for getting user details following an OAuth authorisation without needing the 
user to enter their username/id.

oauth-fix: At present the OAuth code includes all additional query fields used 
to calculate the signature in the actual Authorization header. Twitter ignores 
these but it's better to not send them.
This patch also fixes parsing of multi-field post data (needed for user 
streams).

streamingapi: A somewhat bare-bones implementation of the user and public 
streaming API.

async: Some code to make it less difficult to use twitcurl asynchronously.

misc: Fix ":" being sent to curl when the username and password are blank, and 
NULL instead of "" being sent for the proxy parameter. These were causing 
issues with SSL.

I've not really tested statuses/filter, however the other two streams work fine 
and the code is largely identical.
So far I've only tested this on Windows.
No doubt there'll be some bug somewhere...

One thing I didn't include is fixes/replacements for statuses/public_timeline 
and statuses/friends_timeline, which are now deprecated (the latter of which 
has apparently been removed already), as I'm not sure about the compatibility 
issues with existing code using the library.

Hope these are useful ^^

Regards,
Jonathan

Original issue reported on code.google.com by j.g.renn...@gmail.com on 23 May 2012 at 6:59

Attachments:

GoogleCodeExporter commented 9 years ago
It seems that there were a few uninitialised values and typos/omissions in the 
comments of the streaming patch, so here's an updated one.

Also attached is another patch to add support for the in_reply_to_status_id 
field of statuses/update (this depends on the oauth fix). Fixes this: 
http://groups.google.com/group/twitcurl-discuss/browse_thread/thread/9fda0b48568
8d066

Original comment by j.g.renn...@gmail.com on 23 May 2012 at 5:26

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks a lot for your time and contribution to the project. Am in the 
processing merging the patches. Thanks again :)

Original comment by swatkat....@gmail.com on 3 Jun 2012 at 4:27

GoogleCodeExporter commented 9 years ago
I have been enjoying using this library, but am currently blocked by not having 
streaming support. Has this been merged in yet, or am I looking in the wrong 
spot?

Thanks,
Brian

Original comment by br...@spryhive.com on 5 Aug 2013 at 8:52

GoogleCodeExporter commented 9 years ago
could you also post the twitcurlurls.h file? the streaming api isnt working 
without it. thanks

Original comment by tzhao...@gmail.com on 7 Nov 2014 at 4:16