Hi to the community and thank you for the forum.
I try to get data from accuweather meteo API.
Up to now, no joy, I do not get any response.
const TagoUtils = require(‘tago/utils’);
const TagoAccount = require(‘tago/account’);
const Analysis = require(‘tago/analysis’);
const axios = require(‘axios’).default;
async function getMeteo() {
try {
const response = await axios.get(‘http://dataservice.accuweather.com/currentconditions/v1/349269?apikey=…’);
console.log(response);
} catch (error) {
console.error(error);
}
}
module.exports = new Analysis(getMeteo, ‘’);
I just get : [2019-11-11 12:20:32] Starting analysis 5dbd7b2efbadb70026d86fb4
Any example available ?
thank you
Max