Ushahidi Java SDK
A Java wrapper for the Ushahidi API. It's simply a Java library that wraps the raw HTTP calls to the Ushahidi APIs. The goal of this SDK is to ease Ushahidi API integration into your applications and to support all the Ushahidi public and admin APIs that are there. For more information on the Ushahidi API, see; https://wiki.ushahidi.com/display/WIKI/Ushahidi+REST+API. The project is hosted on github.com
The Ushahidi Java SDK is built using Apache Ant
Run the following command to build a JAR file of the SDK with all the dependencies.
And to compile all the source codes, run
Create UshahidiApi object
The UshahidiApi class allows you to access the various task implemented by this SDK through the object you will create.
Fetch all categories
Pull all visible categories that have been submitted to the Ushahidi platform
Attach news article
Add a news article to an existing report
Add a comment to an existing report. You need to know the report ID to be able to add the comment
Submit a new report to the Ushahidi deployment
You can download the latest release from the projects github's download page . It has a single Jar file that you can include in your project. https://github.com/ushahidi/Ushahidi_Java/downloads
You can find the Javadoc which contains all the relevant documentation on the classes and the packages in the doc directory found in the root folder of the project.
To generate recent version of the Javadoc, run
To clean up the generated distribution file and Javadoc in the root folder, run
How to help
You can help on this project by using the SDK and giving feedback on how to improvement it. Also, you can browse through the issue tracker to find out which issue you can contribute a fix.