We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8825bd commit 7ae688aCopy full SHA for 7ae688a
app.js
@@ -1,7 +1,7 @@
1
/**
2
* Created by alicia.sykes on 24/08/2015.
3
*/
4
-var colors = require('colors');
+require('colors');
5
6
var fetchWeather = require('./fetch-weather');
7
var prepareForWeather = require('./prepared-for-the-weather');
fetch-weather.js
@@ -6,7 +6,8 @@ var request = require('request');
function fetchWeather(location, callback) {
8
9
- var url = 'http://api.openweathermap.org/data/2.5/weather?q='+location;
+ var appId = 'aa0f1b0be45dca476178787f941c76dc'; // This is a managed key - I don't mind if you steal it ;)
10
+ var url = 'http://api.openweathermap.org/data/2.5/weather?q='+location+'&appid='+appId;
11
12
request({
13
url: url,
0 commit comments