Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • AdapterFactory
  • Guzzle5Adapter
  • Guzzle5Promise
  • Guzzle6Adapter
  • Guzzle6Promise

Interfaces

  • AdapterInterface
  • AdapterOptionInterface
  • AdapterPromiseInterface
  • ConfigAware
  • CorrelationIdAware
  • PromiseGetInterface
  • TokenProviderAware

Class Guzzle5Adapter

Commercetools\Core\Client\Adapter\Guzzle5Adapter implements Commercetools\Core\Client\Adapter\AdapterOptionInterface, Commercetools\Core\Client\Adapter\CorrelationIdAware, Commercetools\Core\Client\Adapter\TokenProviderAware, Commercetools\Core\Client\Adapter\ConfigAware
Namespace: Commercetools\Core\Client\Adapter
Located at Core/Client/Adapter/Guzzle5Adapter.php

Methods summary

public
# __construct( array $options = [] )

Parameters

$options
public
# setLogger( Psr\Log\LoggerInterface $logger, $logLevel = Commercetools\Core\Client\Adapter\LogLevel::INFO, $formatter = null )

Implementation of

Commercetools\Core\Client\Adapter\AdapterInterface::setLogger()
public
# addHandler( $handler )

Implementation of

Commercetools\Core\Client\Adapter\AdapterInterface::addHandler()
public
# setCorrelationIdProvider( Commercetools\Core\Helper\CorrelationIdProvider $provider )

Implementation of

Commercetools\Core\Client\Adapter\CorrelationIdAware::setCorrelationIdProvider()
public
# setOAuthTokenProvider( Commercetools\Core\Client\OAuth\TokenProvider $tokenProvider )

Implementation of

Commercetools\Core\Client\Adapter\TokenProviderAware::setOAuthTokenProvider()
public Psr\Http\Message\ResponseInterface
# execute( Psr\Http\Message\RequestInterface $request, array $clientOptions = [] )

Parameters

$request
$clientOptions

Returns

Psr\Http\Message\ResponseInterface

Throws

Commercetools\Core\Error\ApiException
Commercetools\Core\Error\BadGatewayException
Commercetools\Core\Error\ConcurrentModificationException
Commercetools\Core\Error\ErrorResponseException
Commercetools\Core\Error\GatewayTimeoutException
Commercetools\Core\Error\InternalServerErrorException
Commercetools\Core\Error\InvalidTokenException
Commercetools\Core\Error\NotFoundException
Commercetools\Core\Error\ServiceUnavailableException

Implementation of

Commercetools\Core\Client\Adapter\AdapterOptionInterface::execute()
public Psr\Http\Message\ResponseInterface[]
# executeBatch( array $requests, array $clientOptions = [] )

Parameters

$requests
$clientOptions

Returns

Psr\Http\Message\ResponseInterface[]

Throws

Commercetools\Core\Error\ApiException
Commercetools\Core\Error\BadGatewayException
Commercetools\Core\Error\ConcurrentModificationException
Commercetools\Core\Error\ErrorResponseException
Commercetools\Core\Error\GatewayTimeoutException
Commercetools\Core\Error\InternalServerErrorException
Commercetools\Core\Error\InvalidTokenException
Commercetools\Core\Error\NotFoundException
Commercetools\Core\Error\ServiceUnavailableException

Implementation of

Commercetools\Core\Client\Adapter\AdapterOptionInterface::executeBatch()
public Psr\Http\Message\ResponseInterface
# authenticate( $oauthUri, $clientId, $clientSecret, $formParams )

Parameters

$oauthUri
$clientId
$clientSecret
$formParams

Returns

Psr\Http\Message\ResponseInterface

Implementation of

Commercetools\Core\Client\Adapter\AdapterInterface::authenticate()
public Commercetools\Core\Client\Adapter\AdapterPromiseInterface
# executeAsync( Psr\Http\Message\RequestInterface $request, array $clientOptions = [] )

Parameters

$request
$clientOptions

Returns

Commercetools\Core\Client\Adapter\AdapterPromiseInterface

Implementation of

Commercetools\Core\Client\Adapter\AdapterOptionInterface::executeAsync()
public static string
# getAdapterInfo( )

returns used HTTP Client and version

returns used HTTP Client and version

Returns

string

Implementation of

Commercetools\Core\Client\Adapter\AdapterInterface::getAdapterInfo()
public mixed
# getConfig( string $option )

Parameters

$option

Returns

mixed

Inheritdoc

Implementation of

Commercetools\Core\Client\Adapter\ConfigAware::getConfig()

Constants summary

integer DEFAULT_CONCURRENCY
# 25
PHP SDK API documentation generated by ApiGen