request()
request(\Osiset\BasicShopifyAPI\Clients\string $type, \Osiset\BasicShopifyAPI\Clients\string $path, array $params = null, array $headers = array(), \Osiset\BasicShopifyAPI\Clients\bool $sync = true) : array|\GuzzleHttp\Promise\Promise
Runs a request to the Shopify API.
Parameters
\Osiset\BasicShopifyAPI\Clients\string |
$type |
The type of request... GET, POST, PUT, DELETE. |
\Osiset\BasicShopifyAPI\Clients\string |
$path |
The Shopify API path... /admin/xxxx/xxxx.json. |
array |
$params |
Optional parameters to send with the request. |
array |
$headers |
Optional headers to append to the request. |
\Osiset\BasicShopifyAPI\Clients\bool |
$sync |
Optionally wait for the request to finish. |
Returns
array|\GuzzleHttp\Promise\Promise