Skip to content

Commit

Permalink
Fixed broken api calls: Added query parameter APPID.
Browse files Browse the repository at this point in the history
  • Loading branch information
atufkas committed Oct 30, 2015
1 parent 70e0bf7 commit 13db2e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#### Note: Critical fix in latest update (v 0.1.5) on August 25, 2015
Fixed critical bug leading to broken openweathermap API calls (possible values for API parameter "mode" in API 2.5 changed
silently without maintaining backwards compatibility. Minor changes include adding some new cities to "quick selection bar"
and re-labeling special "Storm Alarm" link and intro text (showing view presenting wind and pressure in selected cities over Northern Germany).
#### Note: Fix in latest update (v 0.1.6) on October 30, 2015
Fixed bug leading to broken openweathermap API calls: Header field `x-api-key`
is not sufficient anymore, so that now an additional query parameter `APPID` is mandatory.

---

Expand Down
2 changes: 1 addition & 1 deletion app/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ angular.module('openWeatherApp.services', ['ngResource'])

return $resource(apiBaseUrl + ':path/:subPath?q=:location',
{
// APPID: apiKey,
APPID: apiKey,
mode: 'json',
callback: 'JSON_CALLBACK',
units: 'metric',
Expand Down

0 comments on commit 13db2e6

Please sign in to comment.