Beginner question: Rest API GET request with shopify-php-api always has empty response body

Hi! Do you mean the OAuth documentation? I was reading the the OAuth and REST documentation already. The example I used for testing comes from the shopify-php-api documentation. The example listed there was:

use Shopify\Clients\Rest;

$client = new Rest($session->getShop(), $session->getAccessToken());
$response = $client->get('products');

The difference to my example is that I use offline mode. No matter what REST request I do, I always receive a 200 response but with an empty body.

1 Like