Custom Requests

You can make custom requests by using the methods matching the standard http verbs:

$shopify = app('shopify');

// GET
$shopify->get('products.json'); // returns Illuminate\Http\Client\Response

// POST
$shopify->post('products.json', $payload);

// PUT
$shopify->put('products/{product_id}.json', $payload);

// DELETE
$shopify->delete('products/{product_id}.json');

Each of the requests return an Illuminate\Http\Client\Response instance. Check the Laravel documentation to see which methods are available.

Last updated