I am trying to get a working http.get client function working in Meteor. However, I continue to get my own page as a result.
Here is my code:
Meteor.http.get("api.openweathermap.org/data/2.5/weather?q=London,uk", function (error, result) { if(error) { console.log('http get FAILED!'); } else { console.log('http get SUCCES'); if (result.statusCode === 200) { console.log('Status code = 200!'); console.log(result.content); } } });
I expect it to return a json object containing weather information. Am I missing something here?
Thanks.
source share