RetailCRM API Client

Client
in package

Class Client

Do not instantiate API client directly! Use ClientFactory, SimpleClientFactory or ClientBuilder.

Tags
category

Client

see
ClientFactory
see
SimpleClientFactory
see
ClientBuilder
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

Table of Contents

Properties

$api  : Api
$costs  : Costs
$customerInteraction  : CustomerInteraction
$customers  : Customers
$customersCorporate  : CustomersCorporate
$customFields  : CustomFields
$customMethods  : CustomMethods
$delivery  : Delivery
$features  : Features
$files  : Files
$integration  : Integration
$loyalty  : Loyalty
$notifications  : Notifications
$orders  : Orders
$packs  : Packs
$payments  : Payments
$references  : References
$segments  : Segments
$settings  : Settings
$statistics  : Statistics
$store  : Store
$tasks  : Tasks
$telephony  : Telephony
$users  : Users
$verification  : Verification
$webAnalytics  : WebAnalytics

Methods

__construct()  : mixed
Client constructor.
getStreamFactory()  : StreamFactoryInterface
Returns PSR-17 stream factory.

Properties

Methods

__construct()

Client constructor.

public __construct(string $apiUrl, ClientInterface $httpClient, RequestTransformerInterface $requestTransformer, ResponseTransformerInterface $responseTransformer, StreamFactoryInterface $streamFactory[, EventDispatcherInterface|null $eventDispatcher = null ][, LoggerInterface|null $logger = null ]) : mixed
Parameters
$apiUrl : string
$httpClient : ClientInterface
$requestTransformer : RequestTransformerInterface
$responseTransformer : ResponseTransformerInterface
$streamFactory : StreamFactoryInterface
$eventDispatcher : EventDispatcherInterface|null = null
$logger : LoggerInterface|null = null
Tags
SuppressWarnings

(PHPMD.ExcessiveMethodLength)

todo

Maybe initialize children groups using different method?

getStreamFactory()

Returns PSR-17 stream factory.

public getStreamFactory() : StreamFactoryInterface

StreamFactory can be used to create a PSR-7 StreamInterface from various sources.

Return values
StreamFactoryInterface

        
On this page

Search results