April 2020
Beginner
316 pages
8h 20m
English
Let's start by taking a look at what data we are going to get back from our call. We'll use a publicly open API called https://source.unsplash.com/ that will generate a placeholder image for our recipe on the off chance we've not got a photo at hand.
This is a very simple API that is generated based on the structure of the URL. For example, if you wanted a placeholder image that's 300 x 200 in size and categorized as food, you would simply access the following URL: https://source.unsplash.com/300x200/?food.
If you refresh the URL, you'll see a different image – nice!
Now, let's see how and where we are going to add this to our app. First, we'll create a new Helper class called NetworkHelper by highlighting the ...
Read now
Unlock full access