Shopify SDK for Unity
|
An abstract base that must be defined by classes that will perform network communication. More...
Public Member Functions | |
BaseLoader (string domain, string accessToken, string locale=null) | |
abstract void | Load (string query, LoaderResponseHandler callback) |
Sends the GraphQL query to the GraphQL endpoint. More... | |
abstract void | SetHeader (string key, string value) |
Assigns a custom header field to the loader. More... | |
abstract 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... | |
Properties | |
string | Domain [get] |
Domain of a Shopify store. More... | |
string | AccessToken [get] |
Access token used to communicate with a Shopify store. More... | |
string | Locale [get] |
Locale for translated content of supported types and fields. More... | |
An abstract base that must be defined by classes that will perform network communication.
|
pure virtual |
Sends the GraphQL query to the GraphQL endpoint.
query | a GraphQL query |
callback | a callback which will receive a response from the GraphQL query |
Implemented in Shopify.Unity.SDK.UnityLoader, and Shopify.Unity.SDK.Editor.UnityEditorLoader.
|
pure virtual |
Returns the loader's X-SDK-Variant header value. Required by a BaseLoader implementation to let the server know who is sending the request.
Implemented in Shopify.Unity.SDK.UnityLoader, and Shopify.Unity.SDK.Editor.UnityEditorLoader.
|
pure virtual |
Assigns a custom header field to the loader.
key | Header field name |
value | Header field value |
Implemented in Shopify.Unity.SDK.UnityLoader, and Shopify.Unity.SDK.Editor.UnityEditorLoader.
|
get |
Access token used to communicate with a Shopify store.
|
get |
Locale for translated content of supported types and fields.