request()
request(\Osiset\BasicShopifyAPI\Clients\string $query, array $variables = array(), \Osiset\BasicShopifyAPI\Clients\bool $sync = true) : array|\GuzzleHttp\Promise\Promise
Runs a request to the Shopify API.
Parameters
\Osiset\BasicShopifyAPI\Clients\string | $query | The GraphQL query. |
array | $variables | The optional variables for the query. |
\Osiset\BasicShopifyAPI\Clients\bool | $sync | Optionally wait for the request to finish. |
Throws
- \Osiset\BasicShopifyAPI\Clients\Exception
When missing api password is missing for private apps.
- \Osiset\BasicShopifyAPI\Clients\Exception
When missing access key is missing for public apps.