fix Api key meteo
This commit is contained in:
@@ -9,8 +9,7 @@ class MeteoController extends Controller
|
||||
public function index()
|
||||
{
|
||||
$idCity = 2995971;
|
||||
$apiKey = env('OPEN_WEATHER_MAP_API_KEY');
|
||||
echo 'API Key OpenWeatherMaps'.$apiKey;
|
||||
$apiKey = env('OPEN_WEATHER_MAP_API_KEY', '');
|
||||
$params = '&units=metric&lang=fr';
|
||||
$url = 'https://api.openweathermap.org/data/2.5/forecast?id='.$idCity.'&appid='.$apiKey.$params;
|
||||
$client = new \GuzzleHttp\Client();
|
||||
|
||||
Reference in New Issue
Block a user