Swordfox\Shopify\Client
Class Client
- Author: Graham McLellan
Synopsis
class Client
{
- // constants
- const EXCEPTION_NO_API_KEY = 0;
- const EXCEPTION_NO_API_PASSWORD = 1;
- const EXCEPTION_NO_DOMAIN = 2;
- // members
- private static $api_key = NULL;
- private static $api_password = NULL;
- private static $storefront_access_token = NULL;
- private static $shopify_domain = NULL;
- private static $shared_secret = NULL;
- public $api_limit = NULL;
- public $cron_interval = NULL;
- protected Client|null $client = NULL;
- // methods
- public ResponseInterface products()
- public ResponseInterface product()
- public void deleteProduct()
- public ResponseInterface collections()
- public ResponseInterface collects()
- public ResponseInterface paginationCall()
- public ResponseInterface createWebhook()
- public ResponseInterface deleteWebhook()
- public ResponseInterface getWebhooks()
- public void __construct()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Constants
Name | Value |
---|---|
EXCEPTION_NO_API_KEY | 0 |
EXCEPTION_NO_API_PASSWORD | 1 |
EXCEPTION_NO_DOMAIN | 2 |
Members
private
- $api_key
- $api_password
- $shopify_domain
- $storefront_access_token
protected
- $client — \GuzzleHttp\Client|null
public
- $api_limit
- $cron_interval
Methods
public
- __construct() — Get the configured Guzzle client
- collections() — Get the available Collections
- collects() — Get the connections between Products and Collections
- createWebhook() — Post the new Webhook
- deleteProduct()
- deleteWebhook() — DELETE a Webhook created via API
- getWebhooks() — GET a list of Webhooks created via API
- paginationCall() — Get the available Collection Products
- product() — Get information about a specific product
- products() — Get a list of available products