lundi 9 décembre 2019

Laravel GuzzleHttp response empty

I'm trying to retrieve the value of a URL but it returns a null response. Not sure what I'm doing wrong I've been trying to retrieve the value but I get an empty value. Below is my code

$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://fantasy.premierleague.com/api/bootstrap-static/');

dd($response->getBody()->getContents());


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2E24Gju
via IFTTT

Aucun commentaire:

Enregistrer un commentaire