Merge branch 'master' into 'production'

Master

See merge request Romulus21/portal!12
This commit is contained in:
Romain Delanoë
2020-04-04 09:02:38 +00:00
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,10 @@ class MeteoController extends Controller
public function index() public function index()
{ {
$idCity = 2995971; $idCity = 2995971;
$url = 'https://api.openweathermap.org/data/2.5/forecast?id='.$idCity.'&appid='.env('OPEN_WEATHER_MAP_API_KEY').'&units=metric&lang=fr'; $apiKey = env('OPEN_WEATHER_MAP_API_KEY');
echo 'API Key OpenWeatherMaps'.$apiKey;
$params = '&units=metric&lang=fr';
$url = 'https://api.openweathermap.org/data/2.5/forecast?id='.$idCity.'&appid='.$apiKey.$params;
$client = new \GuzzleHttp\Client(); $client = new \GuzzleHttp\Client();
$promise = $client->requestAsync('GET', $url); $promise = $client->requestAsync('GET', $url);

View File

@@ -1,4 +1,4 @@
<!doctype html>search_bo <!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">