From the course: Swift 5: Protocol-Oriented Programming
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Working with a third-party API
From the course: Swift 5: Protocol-Oriented Programming
Working with a third-party API
- [Instructor] We're going to fetch real weather data using the Open Weather Map web service. Open openweathermap.org and navigate to the API page. For our app, we're only interested in the current weather data. Let's see its documentation. We'll use the API that returns weather data by city name. The syntax is simple. We must provide the city name and the API key as query parameters. To make it work, you will need an API key. To obtain the key, you will need to sign up. The process is straightforward and the steps are described in the "how to start" section. After registration, it takes a couple of hours until the API key gets activated. So please go ahead and get that set up. We'll pick up in the next video.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Weather app design2m 32s
-
Defining the UI using SwiftUI4m 20s
-
(Locked)
The WebServiceController protocol5m 13s
-
(Locked)
Working with a third-party API52s
-
(Locked)
Implementing the OpenWeatherMap controller4m 9s
-
(Locked)
Completing the OpenWeatherMap controller2m 42s
-
(Locked)
Introducing the view model3m 8s
-
(Locked)
Presenting weather data2m 39s
-
(Locked)
Challenge: Integrating a fallback service2m 34s
-
(Locked)
Solution: Integrating a fallback service4m 8s
-
-