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

  • AnonymousFlowTokenProvider
  • CacheTokenProvider
  • ClientCredentials
  • CredentialTokenProvider
  • OAuth2Handler
  • PasswordFlowTokenProvider
  • PreAuthTokenProvider
  • RefreshFlowTokenProvider
  • Token
  • TokenStorageProvider

Interfaces

  • AnonymousIdProvider
  • RefreshTokenProvider
  • TokenProvider
  • TokenStorage

Class OAuth2Handler

Namespace: Commercetools\Core\Client\OAuth
Located at Core/Client/OAuth/OAuth2Handler.php

Methods summary

public
# __construct( Commercetools\Core\Client\OAuth\TokenProvider $provider, Psr\Cache\CacheItemPoolInterface|Psr\SimpleCache\CacheInterface $cache,…, Commercetools\Core\Cache\CacheAdapterFactory|null $factory,…, string $cacheKey,… )

OAuth2Handler constructor.

OAuth2Handler constructor.

Parameters

$provider
$cache,…
$factory,…
$cacheKey,…
public Psr\Http\Message\RequestInterface
# __invoke( Psr\Http\Message\RequestInterface $request, array $options = [] )

Parameters

$request
$options

Returns

Psr\Http\Message\RequestInterface
public string
# getAuthorizationHeader( )

Returns

string
public
# refreshToken( )
public boolean
# refreshable( )

Returns

boolean
PHP SDK API documentation generated by ApiGen