City Weather and Examples
Chainlink Functions Playground
const city = args[0];
const apiResponse = await Functions.makeHttpRequest({
url: `https://wttr.in/${city}?format=3&m`,
responseType: 'text'
});
if (apiResponse.error) {
throw Error('Request failed');
}
const { data } = apiResponse;
return Functions.encodeString(data);






Last updated