fatsecret4j

Java Client for using Fatsecret REST API

View the Project on GitHub ranesr/fatsecret4j

Welcome to JAVA Client for using Fatsecret REST API

This JAVA Client can help you to request data from Fatsceret REST API.

Motivation

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.

Example

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");

Authors and Contributors

@ranesr

Copyright and License

Copyright (C) 2014 @ranesr

Apache License, Version 2.0

Support or Contact

If you want to suggest anything, please contact me at saurabhrrane@gmail.com.