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 ClientCredentials

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

Methods summary

public
# __construct( array $credentials = [] )

Parameters

$credentials
credentials
public string
# getClientId( )

Returns

string
public Commercetools\Core\Client\OAuth\ClientCredentials
# setClientId( string $clientId )

Parameters

$clientId

Returns

Commercetools\Core\Client\OAuth\ClientCredentials
public string
# getClientSecret( )

Returns

string
public string
# getScope( )

Returns

string
public Commercetools\Core\Client\OAuth\ClientCredentials
# setScope( string $scope )

Parameters

$scope

Returns

Commercetools\Core\Client\OAuth\ClientCredentials
public Commercetools\Core\Client\OAuth\ClientCredentials
# setClientSecret( string $clientSecret )

Parameters

$clientSecret

Returns

Commercetools\Core\Client\OAuth\ClientCredentials

Constants summary

string CLIENT_ID
# 'clientId'
string CLIENT_SECRET
# 'clientSecret'
string SCOPE
# 'scope'
PHP SDK API documentation generated by ApiGen