In part I we discovered the hidden Wunderlist API. In this post, I am to show partial implementation of this API client in Java using Retrofit.
The implementation is hosted in my Git repository. Feed free to fork, extend or submit appropriate pull requests. I will be glad to accept your contribution.
Retrofit is a java library which turns your REST API into java interfaces. For example, the REST API which we discovered in Part I will be defined as:
Java Classes such as WList, WTask and Me all map to the JSON response returned by individual REST API.
How do I invoke the API?
Invoking the API is simple. There is a helper class WunderList which is basically a singleton and you have get its instance by providing the wunderlist username and password. Once we have
the instance we can invoke the corresponding helper methods such as GetLists and GetTasks.
Contributing
I will be glad to accept pull requests to make this API client as complete as possible. Since this is still a very partial implementation, I look forward to the contributions from people who want to build something awesome using Wunderlist API.
The project is an Eclipse java application. You can either use eclipse or gradle to build it. For example, using gradle use the task mainjar to build the executable jar