RetailCRM API Client

SimpleClientFactory
in package

Class SimpleClientFactory

Tags
category

SimpleClientFactory

see
ClientFactory

Table of Contents

Methods

createClient()  : Client
Instantiates Client with provided URL and key.
createWithCache()  : Client
Instantiates Client with provided URL, key and cache implementation.
createWithCacheDir()  : Client
Instantiates Client with provided URL, key and cache directory.

Methods

createClient()

Instantiates Client with provided URL and key.

public static createClient(string $apiUrl, string $apiKey) : Client
Parameters
$apiUrl : string
$apiKey : string
Tags
throws
BuilderException
Return values
Client

createWithCache()

Instantiates Client with provided URL, key and cache implementation.

public static createWithCache(string $apiUrl, string $apiKey, CacheItemPoolInterface $cache) : Client
Parameters
$apiUrl : string
$apiKey : string
$cache : CacheItemPoolInterface
Tags
throws
BuilderException
Return values
Client

createWithCacheDir()

Instantiates Client with provided URL, key and cache directory.

public static createWithCacheDir(string $apiUrl, string $apiKey, string $cacheDir) : Client
Parameters
$apiUrl : string
$apiKey : string
$cacheDir : string
Tags
throws
BuilderException
Return values
Client

        
On this page

Search results