Wednesday, September 02, 2009

twitcurl - C++ twitter API library

twitcurl is an open-source pure C++ library for twitter REST APIs. Currently, it has support for most of the twitter APIs and it will be updated to support all the APIs. twitcurl uses cURL library for handling HTTP requests and responses. Building applications using twitcurl is quite easy:
  1. Compile twitcurl source files (twitcurl.h and twitcurl.cpp) and link with cURL library (libcurl.lib) to build twitcurl.lib
  2. Include twitcurl.h in your twitter based application and link to twitcurl.lib and libcurl.lib/libcurl.dll.
  3. Instantiate an object of twitCurl class and use the twitter API wrappers that are exposed as public methods.
twitcurl works on all OS (Windows, Linux, Mac etc.) as it is written completely in C++ and the only dependency is cURL (which works on all OSes mentioned earlier). More info about the twitcurl library along with an example program is available here:
http://code.google.com/p/twitcurl/

11 Comments:

Anonymous Anonymous said...

Just wanna say thanks for the twitcurl library. :)

8:59 PM  
Anonymous Frankenstein Creative Inc. said...

Recently I installed latest ClamWin antivirus v 0.95 and I have already Jiangmin antivirus kv2009 installed on my WIN XP SP2 machine. My problem is that Jiangmin antivirus detects a trojan whenever I try to open up the ClamWin antivirus from Window’s start up. Jiangmin antivirus has deleted ” libclamunrar.dll “.This pop up detection nags me every time I try to open clamwin antivirus.Although I tried reinstalling Clamwin antivirus, the problem persists. Every time I try to open Clamwin antivirus,Jiangmin antivirus simply deletes it. Whereas Jiangmin antivirus was quite o.k with older version of Clamwin antivirus v 0.93 . May I get help from you?

4:03 AM  
Blogger Nikolas said...

Thanks for the library... I've been trying to use it in OSX 10.6 using the curl lib that is already installed in osx, but i keep getting

twitcurl/twitcurl.cpp:1541: error: 'CURLOPT_COPYPOSTFIELDS' was not declared in this scope

Would you know how I could overcome this??

Thanks!!

9:52 AM  
Blogger swatkat said...

@Nikolas,

Please check the curl version that is present in your system. CURLOPT_COPYPOSTFIELDS was added in version 7.17.1:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOPYPOSTFIELDS

7:52 PM  
Blogger swatkat said...

Hi again,
I believe you managed to fix it :)
http://www.openframeworks.cc/forum/viewtopic.php?p=15887
http://www.sunran.com/adding-libcurl-to-xcodes-linker-settings/

Thanks...

7:55 PM  
Blogger Nikolas said...

Yes I did manage to fix it... thank you so much!

9:34 PM  
Blogger Piyu said...

i am unable to build the source code on Fedora 14 which i copied from the http://code.google.com/p/twitcurl/source/browse/#svn%2Fbranches%2Flibtwitcurl
and the main is also missing. will u give me the suitable solution.

2:49 PM  
Anonymous Anonymous said...

Hi, it seems though as twitcurl does not support the twitter streaming API, is that a correct assessment ?

1:59 PM  
OpenID josefmh said...

I am quite anxious to use twitcurl, but can't seem to get twitterclient example to compile with VS 2010. Getting link errors, even after freshly compiling twitcurl.lib. Any suggestions?

3:29 AM  
Anonymous Free Antivirus Download said...

what is API, please post something related it. free antivirus download

1:06 PM  
Anonymous Anonymous said...

And again, just wanted to thank you for releasing twitcurl

There are many facilities out there to interact with twitter but almost none of them for c++, which is the only language I feel confortable.

Thanks!
David.

5:58 AM  

Post a Comment

<< Home