Created
March 10, 2023 18:24
-
-
Save ayeshLK/eab8ebf25320b56c81976b3dec7bdc4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http:Client openWeatherClient = check new("https://api.openweathermap.org/data/2.5"); | |
isolated function getWeatherReport(string location) returns WeatherReport|error { | |
return openWeatherClient->get(string`/weather?q=${location}&appid=xxxxxx`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment