Obsolete: Coded for a decommissioned version of the API. Source code might be adaptable though.
(source: DEAD LINK:
#include <sopp/sopp.h> ... sopp::SetKey("..."); sopp::SetSite(SITE_STACKOVERFLOW); ... sopp::soUser user(1); cout << user.GetDisplayName(); ... std::vector<sopp::soQuestion> questions; user.GetQuestions(questions); cout << questions.GetTitle(); // display title of first question ...
so++ is an object-oriented wrapper for the StackOverflow API. It currently uses libcurl and jsoncpp. The .zip file includes examples, though they need the API key replaced.
so++ is released under the MIT license.
You can download so++ at
http://stackoverflow.quickmediasolutions.com/ (Dead link)
Update: the code is now in my PPA, so you can get it there if you're using Ubuntu:
sudo add-apt-repository ppa:george-edison55/george-edison
so++ is available for any platform with libcurl and the STL.
I am the developer and can be reached at firstname.lastname@example.org
The code can now be found on LaunchPad: http://launchpad.net/sopp