11

Obsolete: Coded for a decommissioned version of the API. Source code might be adaptable though.


(source: DEAD LINK: quickmediasolutions.com)

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/ (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


Platform

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


Contact

I am the developer and can be reached at [email protected]


Code

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

9
  • nice work again!! Commented May 20, 2010 at 7:09
  • 1
    About say it uses jsoncpp, but Platform seems to suggest it doesn't. ;) Commented May 21, 2010 at 0:24
  • @KTC: jsoncpp has the same requirements as my wrapper and will therefore run on anything that my wrapper runs on. Commented May 21, 2010 at 16:05
  • Now on Launchpad: launchpad.net/sopp Commented May 27, 2010 at 7:08
  • 2
    Is this still being developed? How to submit patches? Commented Apr 6, 2012 at 19:49
  • 1
    @KerrekSB: Not currently - but patches are welcome. Please visit the Launchpad page for so++ here: launchpad.net/sopp Commented Apr 6, 2012 at 20:30
  • @GeorgeEdison: Hmm, it's too tricky to submit patches. I simplified the two makefiles, though: jsoncpp and sopp. Commented Apr 6, 2012 at 23:06
  • 2
    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. Commented May 16, 2012 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. Commented May 16, 2012 at 5:40

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.