Video Version of the Lesson
[Only for premium members]
[Only for premium members]
[Only for premium members]
Let's start our Laravel HTTP Client journey with a simple real-world example: building a weather widget that displays current London weather information from OpenWeatherMap API.
By the end of this lesson, you will learn how to:
Http::get()
with query parametersYou need to check the documentation for every external third-party API, which, if you're lucky, often leads to dedicated PHP/Laravel packages.
However, in this course, I want to focus on APIs without packages, so you will adopt the skill to use any API in the future.
In the case of OpenWeatherMap, the main API call information for the current weather looks like this:
So, this is a straightforward case: just an API call with...