https://github.com/fatsecret/fatsecret4j
Java/Android Client for using Fatsecret REST API
https://github.com/fatsecret/fatsecret4j
android android-client fatsecret food java-8 java-client maven-plugin recipe
Last synced: 24 days ago
JSON representation
Java/Android Client for using Fatsecret REST API
- Host: GitHub
- URL: https://github.com/fatsecret/fatsecret4j
- Owner: fatsecret
- License: apache-2.0
- Created: 2016-06-10T17:01:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-09T06:01:02.000Z (almost 5 years ago)
- Last Synced: 2023-08-07T14:10:13.067Z (about 2 years ago)
- Topics: android, android-client, fatsecret, food, java-8, java-client, maven-plugin, recipe
- Language: Java
- Homepage: http://fatsecret4j.com
- Size: 44.9 KB
- Stars: 9
- Watchers: 6
- Forks: 16
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fatsecret4j
Java/Android Client for using Fatsecret REST API## Java Client Code
You can use this library by downloading it [here](http://search.maven.org/remotecontent?filepath=com/fatsecret4j/fatsecret-platform/2.0/fatsecret-platform-2.0.jar) or by following this step -
### Add this maven dependency in your pom.xml
```xml
com.fatsecret4j
fatsecret-platform
2.0```
## Android Client Code
You can use this library by downloading it [here](http://search.maven.org/remotecontent?filepath=com/fatsecret4j/fatsecret-platform/2.0/fatsecret-platform-2.0.jar) and placing it in libs folder or by following these steps -
### Add the following configuration to your `build.gradle` file
```
repositories {
mavenCentral()
}android {
defaultConfig {
minSdkVersion 24
jackOptions {
enabled true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}dependencies {
compile 'com.fatsecret4j:fatsecret-platform:2.0'
compile 'com.android.volley:volley:1.0.0'
}
```### Add the following line to your `Android Manifest` file
In order to target Android API level 24 or later, you will need to ensure that your application requests runtime permissions for internet access.
```xml
```
## Supported methods
* food.get()
* foods.search()
* recipe.get()
* recipe.search()You can check more documentation [here](http://fatsecret4j.com).