Dynamic\Shopify\Client\ShopifyClient
Class ShopifyClient
Synopsis
class ShopifyClient
{
- // constants
- const EXCEPTION_NO_API_KEY = 0;
- const EXCEPTION_NO_API_PASSWORD = 1;
- const EXCEPTION_NO_DOMAIN = 2;
- // members
- private static string $api_version = '2021-01';
- private static $api_key = NULL;
- private static $api_password = NULL;
- private static $storefront_access_token = NULL;
- private static $shopify_domain = NULL;
- private static $custom_domain = NULL;
- private static $shared_secret = NULL;
- private static boolean $inject_javascript = true;
- protected BasicShopifyAPI $client = NULL;
- // methods
- public void __construct()
- public void __call()
- protected $this setClient()
- protected BasicShopifyAPI|null getClient()
- public static mixed get_domain()
- protected void updateLocalCache()
- public array|Promise currencyCode()
- public array|Promise products()
- public array|Promise product()
- public ResponseInterface collections()
- public void collection()
- public array|Promise productCollections()
- public array|Promise collectionProducts()
- public array|Promise|ResponseAccess productMedia()
- public array|Promise|ResponseAccess collectionMedia()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
Constants
Name | Value |
---|---|
EXCEPTION_NO_API_KEY | 0 |
EXCEPTION_NO_API_PASSWORD | 1 |
EXCEPTION_NO_DOMAIN | 2 |
Members
private
- $api_key
- $api_password
-
$api_version
Configures the version of the api that you want to use - $custom_domain
-
$inject_javascript
Set this to false when creating your own custom shopify buy js - $shopify_domain
- $storefront_access_token
protected
- $client — Osiset\BasicShopifyAPI\BasicShopifyAPI
Methods
protected
- getClient()
- setClient()
- updateLocalCache() — Updates locally stored config options set in shopify
public
- __construct() — Get the configured Guzzle client
- __call()
- collection()
- collectionMedia()
- collectionProducts() — return products of a given collection by handle
- collections() — Get the available Collections
- currencyCode() — Gets the shop's currency code
- get_domain()
- product()
- productCollections()
- productMedia()
- products()