Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Code Snippet

#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[0].GetTitle();  // display title of first question
...

About

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.


License

so++ is released under the MIT license.


Download

You can download so++ at http://stackoverflow.quickmediasolutions.com/

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


Platform

so++ is available for any platform with libcurl and the STL.


Contact

I am the developer and can be reached at admin@quickmediasolutions.com


Code

The code can now be found on LaunchPad: http://launchpad.net/sopp

share|improve this question
    
nice work again!! –  systempuntoout May 20 '10 at 7:09
    
@sys: Thanks. Glad you think it's worthwhile. –  Nathan Osman May 20 '10 at 8:26
    
About say it uses jsoncpp, but Platform seems to suggest it doesn't. ;) –  KTC May 21 '10 at 0:24
    
@KTC: jsoncpp has the same requirements as my wrapper and will therefore run on anything that my wrapper runs on. –  Nathan Osman May 21 '10 at 16:05
    
Now on Launchpad: launchpad.net/sopp –  Nathan Osman May 27 '10 at 7:08
    
Is this still being developed? How to submit patches? –  Kerrek SB Apr 6 '12 at 19:49
    
@KerrekSB: Not currently - but patches are welcome. Please visit the Launchpad page for so++ here: launchpad.net/sopp –  Nathan Osman Apr 6 '12 at 20:30
    
@GeorgeEdison: Hmm, it's too tricky to submit patches. I simplified the two makefiles, though: jsoncpp and sopp. –  Kerrek SB Apr 6 '12 at 23:06
    
@KerrekSB: Thanks. –  Nathan Osman Apr 6 '12 at 23:35
    
Don't know much yet about the stack API but I noticed it says v1 is obsolete and this was made before v2 release. Is it still usable. I wanted to use for a blackberry playbook app. This would be perfect for me to practice with if so. –  Brandon Clark May 16 '12 at 4:54
    
@BrandonClark: Yes, that is correct. so++ supported a limited set of requests against v1.0 of the API and as such should still work. –  Nathan Osman May 16 '12 at 5:40

You must log in to answer this question.

Browse other questions tagged .