`I'm trying to retrieve some data from external api with laravel : this is my controller
use Illuminate\Http\Request; use Illuminate\Support\Facades\Http;
public function netvigie()
{
$response = Http::get('https://extranet.netvigie.com/fr/api/{token}/availability/{id}/getAnomaliesCount?format=json');
$data = json_decode($response->body(), true);
dd($data);
return view('ControlmAPI.netvigie');
}
But i have curl error 28 while it works in Postman. We have only 2 parameters which are token and product id that we enter directly in the url.
Someone can help me please ?