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....
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:
Try below one, I have added support for Stack Exchange API V2.x
For more detail, follow docs
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(