Created
January 25, 2017 21:50
-
-
Save tsimmons/75165b26cc2688cf9141a8a32af667bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113c113 | |
< var url = "http://api.openweathermap.org/data/2.5/find?type=like&q=" + encodeURIComponent(locationName); | |
--- | |
> var url = "http://api.openweathermap.org/data/2.5/find?type=like&q=" + encodeURIComponent(locationName) + "&appid=INSERT_YOUR_APP_ID"; | |
121a122 | |
> document.getElementById("error").innerHTML = url; | |
129c130 | |
< var url = "http://api.openweathermap.org/data/2.5/forecast?units=" + units + "&id=" + locationId; | |
--- | |
> var url = "http://api.openweathermap.org/data/2.5/forecast?units=" + units + "&id=" + locationId + "&appid=INSERT_YOUR_APP_ID"; | |
131c132 | |
< var url = "http://api.openweathermap.org/data/2.5/forecast/daily?mode=json&cnt=4&units=" + units + "&id=" + locationId; | |
--- | |
> var url = "http://api.openweathermap.org/data/2.5/forecast/daily?mode=json&cnt=4&units=" + units + "&id=" + locationId + "&appid=INSERT_YOUR_APP_ID"; | |
140a142 | |
> document.getElementById("error").innerHTML = response; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment