Skip to content

Commit

Permalink
Merge pull request #126 from Erulezz/patch-1
Browse files Browse the repository at this point in the history
Update API URLs to use HTTPS
  • Loading branch information
cmfcmf authored Aug 30, 2018
2 parents 92edee8 + b7923aa commit 37f2e11
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Cmfcmf/OpenWeatherMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,37 @@ class OpenWeatherMap
*
* @var string $copyright
*/
const COPYRIGHT = "Weather data from <a href=\"http://openweathermap.org\">OpenWeatherMap.org</a>";
const COPYRIGHT = "Weather data from <a href=\"https://openweathermap.org\">OpenWeatherMap.org</a>";

/**
* @var string The basic api url to fetch weather data from.
*/
private $weatherUrl = 'http://api.openweathermap.org/data/2.5/weather?';
private $weatherUrl = 'https://api.openweathermap.org/data/2.5/weather?';

/**
* @var string The basic api url to fetch weather group data from.
*/
private $weatherGroupUrl = 'http://api.openweathermap.org/data/2.5/group?';
private $weatherGroupUrl = 'https://api.openweathermap.org/data/2.5/group?';

/**
* @var string The basic api url to fetch weekly forecast data from.
*/
private $weatherHourlyForecastUrl = 'http://api.openweathermap.org/data/2.5/forecast?';
private $weatherHourlyForecastUrl = 'https://api.openweathermap.org/data/2.5/forecast?';

/**
* @var string The basic api url to fetch daily forecast data from.
*/
private $weatherDailyForecastUrl = 'http://api.openweathermap.org/data/2.5/forecast/daily?';
private $weatherDailyForecastUrl = 'https://api.openweathermap.org/data/2.5/forecast/daily?';

/**
* @var string The basic api url to fetch history weather data from.
*/
private $weatherHistoryUrl = 'http://history.openweathermap.org/data/2.5/history/city?';
private $weatherHistoryUrl = 'https://history.openweathermap.org/data/2.5/history/city?';

/**
* @var string The basic api url to fetch uv index data from.
*/
private $uvIndexUrl = 'http://api.openweathermap.org/v3/uvi';
private $uvIndexUrl = 'https://api.openweathermap.org/v3/uvi';

/**
* @var AbstractCache|bool $cache The cache to use.
Expand Down

0 comments on commit 37f2e11

Please sign in to comment.