\Osiset\BasicShopifyAPI\ContractsGraphRequester

Reprecents Graph client.

Summary

Methods
Constants
getLimitStore()
getTimeStore()
getTimeDeferrer()
setClient()
getClient()
setOptions()
getOptions()
request()
getBaseUri()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setClient()

setClient(\GuzzleHttp\ClientInterface  $client) : void

Set the Guzzle client.

Parameters

\GuzzleHttp\ClientInterface $client

getClient()

getClient() : \GuzzleHttp\ClientInterface

Get the client.

Returns

\GuzzleHttp\ClientInterface

setOptions()

setOptions(\Osiset\BasicShopifyAPI\Options  $options) : void

Set the options.

Parameters

\Osiset\BasicShopifyAPI\Options $options

getOptions()

getOptions() : \Osiset\BasicShopifyAPI\Options

Get the options.

Returns

\Osiset\BasicShopifyAPI\Options

request()

request(string  $query, array  $variables = array(), boolean  $sync = true) : array|\GuzzleHttp\Promise\Promise

Runs a request to the Shopify API.

Parameters

string $query

The GraphQL query.

array $variables

The optional variables for the query.

boolean $sync

Optionally wait for the request to finish.

Returns

array|\GuzzleHttp\Promise\Promise

getBaseUri()

getBaseUri() : \GuzzleHttp\Psr7\Uri

Returns the base URI to use.

Throws

\Osiset\BasicShopifyAPI\Contracts\Exception

For missing shop domain.

Returns

\GuzzleHttp\Psr7\Uri