Hot answers tagged

3

a few questions i have about your API. based on the user can I get a list of all questions and answers the user has? 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: Answer.addPlus() Answer.removePlus() Answer.addNegitive() Answer.removeNegitive() Answer....


3

The StackWrap4J library is very obsolete. Its page states: The latest build was tested against version 1.0 of the API on July 28th. 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....


2

stackoverflow-java-sdk artifacts have been upload to Maven Central. Now, You simply add maven dependency in your project POM Dependency <dependency> <groupId>com.googlecode.stackexchange</groupId> <artifactId>stackoverflow-java-sdk-release</artifactId> <version>2.2.0</version> </...


2

Vineet, Try below one, I have added support for Stack Exchange API V2.x https://github.com/sanjivsingh/stackoverflow-java-sdk For more detail, follow docs https://github.com/sanjivsingh/stackoverflow-java-sdk/wiki


2

You're correct in assuming you need dedicated compression support; HttpURLConnection by itself won't be able to process the output. I'm not sure where your problem is, but let me help you with this simple example (using IOUtils from Apache Commons IO). The deCompress method isn't even necessary: if (responseCode == HttpURLConnection.HTTP_OK) { String s; ...


1

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 ...


1

You can try below java wrapper, notification support is there. https://github.com/sanjivsingh/stackoverflow-java-sdk For more detail, follow docs https://github.com/sanjivsingh/stackoverflow-java-sdk/wiki Query Example : StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance( applicationKey, accessToken,StackExchangeSite....


Only top voted, non community-wiki answers of a minimum length are eligible