commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Public Member Functions | List of all members
Commercetools\Client\ClientCredentials Class Reference

Public Member Functions

 __construct (string $clientId, string $clientSecret, string $scope=null)
 
 getClientId ()
 
 getScope ()
 
 getClientSecret ()
 
 getCacheKey ()
 

Detailed Description

@psalm-immutable

Definition at line 15 of file ClientCredentials.php.

Constructor & Destructor Documentation

◆ __construct()

Commercetools\Client\ClientCredentials::__construct ( string  $clientId,
string  $clientSecret,
string  $scope = null 
)

The constructor of the ClientCredentials class.

Parameters
string$clientIdThe client id.
string$clientSecretThe client secret.
string$scopeProvide the scope when you want to request a specific ones for the client. Can be omitted to use all scopes of the oauth client. Format: <the scope name>:<the project key>. Example: manage_products:project1.

Definition at line 41 of file ClientCredentials.php.

Member Function Documentation

◆ getCacheKey()

Commercetools\Client\ClientCredentials::getCacheKey ( )

Definition at line 64 of file ClientCredentials.php.

◆ getClientId()

Commercetools\Client\ClientCredentials::getClientId ( )

Definition at line 49 of file ClientCredentials.php.

◆ getClientSecret()

Commercetools\Client\ClientCredentials::getClientSecret ( )

Definition at line 59 of file ClientCredentials.php.

◆ getScope()

Commercetools\Client\ClientCredentials::getScope ( )

Definition at line 54 of file ClientCredentials.php.


The documentation for this class was generated from the following file: