Screenshot / Code Snippet
StackExchangeApi api = new StackExchangeApi(key);
api.authorize(authToken);
StackExchangeSite siteService = api.getSiteService(StackExchangeSite.STACK_OVERFLOW);
Response<User> users = siteService.getUsers();
for (User user : users) {
System.out.println(user.getDisplayName());
}
StackExchange service = api.getService();
Response<Site> sites = service.getSites();
sites.getQuotaRemaining();
About
StackExchange API Java wrapper is a Java wrapper for StackExchange API v2.2. ;-) Right now it's in early development stage. I am posting it here because I would like to build it with you. This tool should be helpful for you, so I would like to hear some feedback from you about any feature or idea you have.
This library uses retrofit
for HTTP requests.
It will be available also in maven repository.
License
StackExchange API Java wrapper is available under the MIT license.
Download
Releases will be available in GitHub releases section.
Platform
Java/Android
Contact
You can contact me here, using jakub at hsz.mobi
or GitHub issues.
Code
Source code is available under my hsz/StackExchange
repository.
Feel free to fork and pull request.