title: Retrieve data from external api with Laravel
body: <p>`I'm trying to retrieve some data from external api with laravel :
  this is my controller</p>
  <p>use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Http;</p>
  <pre><code>public function netvigie()  
      {
          $response = Http::get('https://extranet.netvigie.com/fr/api/{token}/availability/{id}/getAnomaliesCount?format=json');
          $data = json_decode($response-&gt;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 ?
  </code></pre>