Android Kotlin: Forecast App 02 - Retrofit + Coroutines + Gson Fetch API Data - MVVM Tutorial Course HD
Get the code from this tutorial https://resocoder.com/forecast-app-02 Start saving time now by planning weekly with Week Sweep: http://bit.ly/2Jf3QA0 Apixu Weather API: https://www.apixu.com/ In the previous part we created blank fragments. We can navigate between them using the navigation architecture component library. In this tutorial, we will add some actual functionality to this Forecast MVVM app, namely the ability to fetch weather from an API. This means that in this part you are going to learn how to use Retrofit together with Gson to fetch and parse JSON data from an API. The API we are going to use is Apixu which is a weather API offering a generous free plan. You can apply what you learn here to any other API you desire so should there be any problems with Apixu in the future, you will be able to switch to a different API very easily. Go to my website for more information, code examples and articles: ● http://resocoder.com Follow me on social media: ● https://instagram.com/resocoder ● https://www.facebook.com/resocoder ● https://twitter.com/resocoder ● https://gab.ai/resocoder