Hitting API with guzzle
-
Hi
I want to hit an API of wishlist to get products in wishlist using guzzle.$client = new \GuzzleHttp\Client();
$res = $client->get("http://localhost:8080/is/public/api/wishlist?pagination=0");
$status = $res->getStatusCode(); // 200
The response i get is internal server error 500 need some guidance. -
Hi @sohaib,
Check your URL, is that correct because I am seeing
/is/
something. -
Hi @sohaib,
Please check if a user is authenticated and also add
Accept: application/json
as a header to see the proper response.