commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
|
Public Member Functions | |
__construct (string $clientId, string $clientSecret, string $scope=null) | |
getClientId () | |
getScope () | |
getClientSecret () | |
getCacheKey () | |
@psalm-immutable
Definition at line 15 of file ClientCredentials.php.
Commercetools\Client\ClientCredentials::__construct | ( | string | $clientId, |
string | $clientSecret, | ||
string | $scope = null |
||
) |
The constructor of the ClientCredentials class.
string | $clientId | The client id. |
string | $clientSecret | The client secret. |
string | $scope | Provide 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.
Commercetools\Client\ClientCredentials::getCacheKey | ( | ) |
Definition at line 64 of file ClientCredentials.php.
Commercetools\Client\ClientCredentials::getClientId | ( | ) |
Definition at line 49 of file ClientCredentials.php.
Commercetools\Client\ClientCredentials::getClientSecret | ( | ) |
Definition at line 59 of file ClientCredentials.php.
Commercetools\Client\ClientCredentials::getScope | ( | ) |
Definition at line 54 of file ClientCredentials.php.