The StackWrap4J library is very obsolete. Its page states:
The latest build was tested against version 1.0 of the API on July
But API version 1 has been shut down for quite a while. The API is currently at version 2.2.
Choose a different library. The list is at stackapps.com/questions/tagged/library+java. Choose one that supports API version 2....
OK, well, I've pretty much confirmed that A LOT has changed with version 2.0... the new release does not appear to be backwards compatible with version 1.1 at all. Kind of annoying if you ask me. For now I'm going to modify StackWrap4J myself and just copy and paste the modified source code into my app... if anyone is interested in partnering up to extend ...
Try below one, I have added support for Stack Exchange API V2.x
For more detail, follow docs
stackoverflow-java-sdk artifacts have been upload to Maven Central.
Now, You simply add maven dependency in your project POM
a few questions i have about your API.
based on the user can I get a list of all questions and answers the
giving a user can I get a List<Questions> and List<Answer> that the user has made?
will the answer object have the following methods:
The API responses are always compressed and the default compression is GZIP.
This means that you must use the proper GZIP-handling libraries to fetch the data.
So, instead of:
BufferedReader in = new BufferedReader (new InputStreamReader (
yc.getInputStream () ));
You would use something more like:
BufferedReader in = new BufferedReader (new ...
You can try below java wrapper, notification support is there.
For more detail, follow docs https://github.com/sanjivsingh/stackoverflow-java-sdk/wiki
Query Example :
StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance(