Skip to content

This retrofit tutorial represents the food data in JSON form and display it using RecyclerView and CardView.

License

Notifications You must be signed in to change notification settings

hajiyevelnur92/retrofit-with-food2fork.com

Repository files navigation

retrofit-with-food2fork.com

This will provide food data in JSON form and display it using RecyclerView and CardView.

NOTE:Please register at foot2fork.com first and get api_code

Code

{
	count: 30,
	recipes: [
	{
		publisher: "Closet Cooking",
		f2f_url: "http://food2fork.com/view/35382",
		title: "Jalapeno Popper Grilled Cheese Sandwich",
		source_url: "http://www.closetcooking.com/2011/04/jalapeno-popper-grilled-cheese-sandwich.html",
		recipe_id: "35382",
		image_url: "http://static.food2fork.com/Jalapeno2BPopper2BGrilled2BCheese2BSandwich2B12B500fd186186.jpg",
		social_rank: 100,
		publisher_url: "http://closetcooking.com"
	},
	...
		]
}

Usage

image

Gradle

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

dependencies {
     implementation 'com.github.hajiyevelnur92:retrofit-with-food2fork.com:v1.0'
}