Skip to content

Instantly share code, notes, and snippets.

@ayeshLK
Created March 10, 2023 18:24
Show Gist options
  • Save ayeshLK/eab8ebf25320b56c81976b3dec7bdc4c to your computer and use it in GitHub Desktop.
Save ayeshLK/eab8ebf25320b56c81976b3dec7bdc4c to your computer and use it in GitHub Desktop.
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