Java Client for using Fatsecret REST API
This JAVA Client can help you to request data from Fatsceret REST API.
There is no available JAVA library for using Fatsecret REST API when I searched on the Internet. This is my version of JAVA code which can help programmers to get the data from Fatsecret API for these methods foods.search, food.get, recipes.search, and recipe.get.
Initialize an object of class 'FatSecretAPI' with your API Consumer Key and Shared Secret and call particular methods for getting the data.
FatSecretAPI api = new FatSecretAPI("YOUR API CONSUMER KEY", "YOUR API SHARED SECRET");
//For getting food items
JSONObject foods = api.getFoodItems("Burgers");
//For getting recipes
JSONObject recipes = api.getRecipes("Burgers");
Copyright (C) 2014 @ranesr
If you want to suggest anything, please contact me at saurabhrrane@gmail.com.