commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
|
Public Member Functions | |
__construct (Client $client, string $accessTokenUrl, ClientCredentials $credentials, TokenStorage $tokenStorage) | |
getTokenFor (string $userName, string $password) | |
Public Attributes | |
const | GRANT_TYPE = 'grant_type' |
const | GRANT_TYPE_PASSWORD = 'password' |
const | REFRESH_TOKEN = 'refresh_token' |
const | ACCESS_TOKEN = 'access_token' |
const | EXPIRES_IN = 'expires_in' |
Definition at line 9 of file PasswordFlowTokenProvider.php.
Commercetools\Client\PasswordFlowTokenProvider::__construct | ( | Client | $client, |
string | $accessTokenUrl, | ||
ClientCredentials | $credentials, | ||
TokenStorage | $tokenStorage | ||
) |
Definition at line 37 of file PasswordFlowTokenProvider.php.
Commercetools\Client\PasswordFlowTokenProvider::getTokenFor | ( | string | $userName, |
string | $password | ||
) |
@psalm-var array $body
Definition at line 49 of file PasswordFlowTokenProvider.php.
const Commercetools\Client\PasswordFlowTokenProvider::ACCESS_TOKEN = 'access_token' |
Definition at line 14 of file PasswordFlowTokenProvider.php.
const Commercetools\Client\PasswordFlowTokenProvider::EXPIRES_IN = 'expires_in' |
Definition at line 15 of file PasswordFlowTokenProvider.php.
const Commercetools\Client\PasswordFlowTokenProvider::GRANT_TYPE = 'grant_type' |
Definition at line 11 of file PasswordFlowTokenProvider.php.
const Commercetools\Client\PasswordFlowTokenProvider::GRANT_TYPE_PASSWORD = 'password' |
Definition at line 12 of file PasswordFlowTokenProvider.php.
const Commercetools\Client\PasswordFlowTokenProvider::REFRESH_TOKEN = 'refresh_token' |
Definition at line 13 of file PasswordFlowTokenProvider.php.