https://github.com/caravancodes/consumable-code-the-meal-db-api
Retrofit has been Handled !! || Consumable code for request API (TheMealDBApi) || Link https://www.themealdb.com/api.php
https://github.com/caravancodes/consumable-code-the-meal-db-api
android-library fetch-api library meal meal-api meals mock retrieve retrieve-data
Last synced: 8 months ago
JSON representation
Retrofit has been Handled !! || Consumable code for request API (TheMealDBApi) || Link https://www.themealdb.com/api.php
- Host: GitHub
- URL: https://github.com/caravancodes/consumable-code-the-meal-db-api
- Owner: caravancodes
- License: apache-2.0
- Archived: true
- Created: 2020-03-10T14:32:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T07:32:47.000Z (over 4 years ago)
- Last Synced: 2024-12-31T00:04:09.694Z (11 months ago)
- Topics: android-library, fetch-api, library, meal, meal-api, meals, mock, retrieve, retrieve-data
- Language: Kotlin
- Homepage:
- Size: 2.19 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-project-catalogue - Click Here
README

## consumable-code-the-meal-db-api
[](https://jitpack.io/#amirisback/consumable-code-the-meal-db-api)
Eliminates the method of retrieving json data using retrofit repeatedly. so this project has a set of functions to retrieve data without the need for fetching data using the retrofit of the API
## Attention Please :bangbang:
Please use frogo-consume-api [Click Here](https://github.com/frogobox/frogo-consume-api) to get the latest updates
## Documentation The News API
https://www.themealdb.com/api.php
## Screen Shoot Apps
| The Meals API | Chuck Data 1 | Chuck Data 2 |
|:------------------:|:----------------------------:|:---------------------:|
|
|
|
|
## Version Release
This Is Latest Release
$version_release = 1.1.1
What's New??
* Update build.gradle *
* Enhance Performance *
## How To Use This Project
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
// library consumable code the meal db api
implementation 'com.github.amirisback:consumable-code-the-meal-db-api:1.1.1'
}
Step 3. Declaration ConsumeTheMealDbApi
val consumeMealApi = ConsumeTheMealDbApi("1") Your API_KEY
consumeMealApi.usingChuckInterceptor(this) // Using Chuck Interceptor
consumeMealApi.listAllCateories(object : MealResultCallback> {
override fun getResultData(data: MealResponse) {
// * PLACE YOUR CODE HERE FOR UI / ARRAYLIST *
}
override fun failedResult(statusCode: Int, errorMessage: String?) {
// Failed Status
}
override fun onShowProgress() {
// Show Your Progress View
}
override fun onHideProgress() {
// Hide Your Progress View
}
})
## Function Main From This Project
// Switch For Using Chuck Interceptor
fun usingChuckInterceptor(context: Context)
// Search meal by name
fun searchMeal(mealName: String, callback: MealResultCallback>)
// List all meals by first letter
fun listAllMeal(firstLetter: String, callback: MealResultCallback>)
// Lookup full meal details by id
fun lookupFullMeal(idMeal: String, callback: MealResultCallback>)
// Lookup a single random meal
fun lookupRandomMeal(callback: MealResultCallback>)
// List all meal categories
fun listMealCategories(callback: MealResultCallback)
// List all Categories
fun listAllCateories(callback: MealResultCallback>)
// List all Area
fun listAllArea(callback: MealResultCallback>)
// List all Ingredients
fun listAllIngredients(callback: MealResultCallback>)
// Filter by main ingredient
fun filterByIngredient(ingredient: String, callback: MealResultCallback>)
// Filter by Category
fun filterByCategory(category: String, callback: MealResultCallback>)
// Filter by Area
fun filterByArea(area: String, callback: MealResultCallback>)
## Colaborator
Very open to anyone, I'll write your name under this, please contribute by sending an email to me
- Mail To faisalamircs@gmail.com
- Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
- Example : Github_amirisback_kotlin_admob-helper-implementation
Name Of Contribute
- Muhammad Faisal Amir
- Waiting List
- Waiting List
Waiting for your contribute
## Attention !!!
Please enjoy and don't forget fork and give a star
- Don't Forget Follow My Github Account
- If you like this library, please help me / you can donate to buy patreon services