Skip to content

Instantly share code, notes, and snippets.

@tsimmons
Created January 25, 2017 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsimmons/75165b26cc2688cf9141a8a32af667bc to your computer and use it in GitHub Desktop.
Save tsimmons/75165b26cc2688cf9141a8a32af667bc to your computer and use it in GitHub Desktop.
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