Performs network communication to send GraphQL queries between Unity and a Shopify GraphQL endpoint.
More...
|
| UnityLoader (string domain, string accessToken, string locale=null) |
|
override void | Load (string query, LoaderResponseHandler callback) |
| Send a query to the Storefront API. More...
|
|
override void | SetHeader (string key, string value) |
| Assigns a custom header field to the loader. More...
|
|
override string | SDKVariantName () |
| Returns the loader's X-SDK-Variant header value. Required by a BaseLoader implementation to let the server know who is sending the request. More...
|
|
| BaseLoader (string domain, string accessToken, string locale=null) |
|
Performs network communication to send GraphQL queries between Unity and a Shopify GraphQL endpoint.
◆ UnityLoader()
Shopify.Unity.SDK.UnityLoader.UnityLoader |
( |
string |
domain, |
|
|
string |
accessToken, |
|
|
string |
locale = null |
|
) |
| |
|
inline |
- Parameters
-
domain | Shopify store domain that you'd like to query on |
accessToken | access token used to communicate with the Shopify Store |
◆ Load()
override void Shopify.Unity.SDK.UnityLoader.Load |
( |
string |
query, |
|
|
LoaderResponseHandler |
callback |
|
) |
| |
|
inlinevirtual |
Send a query to the Storefront API.
- Parameters
-
query | Query that will be sent to the Storefront API |
callback | callback that receives a response |
Implements Shopify.Unity.SDK.BaseLoader.
◆ SDKVariantName()
override string Shopify.Unity.SDK.UnityLoader.SDKVariantName |
( |
| ) |
|
|
inlinevirtual |
Returns the loader's X-SDK-Variant header value. Required by a BaseLoader implementation to let the server know who is sending the request.
- Returns
- Identifying name of the loader to be sent to the server using the X-SDK-Variant header.
Implements Shopify.Unity.SDK.BaseLoader.
◆ SetHeader()
override void Shopify.Unity.SDK.UnityLoader.SetHeader |
( |
string |
key, |
|
|
string |
value |
|
) |
| |
|
inlinevirtual |
Assigns a custom header field to the loader.
- Parameters
-
key | Header field name |
value | Header field value |
Implements Shopify.Unity.SDK.BaseLoader.
The documentation for this class was generated from the following file:
- Assets/Shopify/Unity/SDK/UnityLoader.cs