commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Public Member Functions | Public Attributes | List of all members
Commercetools\Client\MeConfig Class Reference
Inheritance diagram for Commercetools\Client\MeConfig:
Commercetools\Api\Client\BaseAuthConfig Commercetools\Client\ClientCredentialsConfig Commercetools\Client\AuthConfig Commercetools\Client\AuthConfig

Public Member Functions

 __construct (string $projectKey, ClientCredentials $credentials, array $clientOptions=[], string $anonUri=null, string $refreshUri=null, string $authUri=self::AUTH_URI)
 
 getCredentials ()
 
 getAnonUri ()
 
 getRefreshUri ()
 
- Public Member Functions inherited from Commercetools\Api\Client\BaseAuthConfig
 __construct (array $clientOptions=[], string $authUri=self::AUTH_URI)
 
 getGrantType ()
 
 getAuthUri ()
 
 getOptions ()
 

Public Attributes

const ANON_AUTH_URI = 'https://auth.europe-west1.gcp.commercetools.com/oauth/{projectKey}/anonymous/token'
 
const REFRESH_AUTH_URI = 'https://auth.europe-west1.gcp.commercetools.com/oauth/token'
 
const GRANT_TYPE = 'client_credentials'
 
- Public Attributes inherited from Commercetools\Api\Client\BaseAuthConfig
const AUTH_URI = 'https://auth.europe-west1.gcp.commercetools.com/oauth/token'
 
const GRANT_TYPE = ''
 
- Public Attributes inherited from Commercetools\Client\AuthConfig
const OPT_BASE_URI = 'base_uri'
 

Detailed Description

Definition at line 10 of file MeConfig.php.

Constructor & Destructor Documentation

◆ __construct()

Commercetools\Client\MeConfig::__construct ( string  $projectKey,
ClientCredentials  $credentials,
array  $clientOptions = [],
string  $anonUri = null,
string  $refreshUri = null,
string  $authUri = self::AUTH_URI 
)

Definition at line 26 of file MeConfig.php.

Member Function Documentation

◆ getAnonUri()

Commercetools\Client\MeConfig::getAnonUri ( )

Definition at line 47 of file MeConfig.php.

◆ getCredentials()

Commercetools\Client\MeConfig::getCredentials ( )

Implements Commercetools\Client\ClientCredentialsConfig.

Definition at line 42 of file MeConfig.php.

◆ getRefreshUri()

Commercetools\Client\MeConfig::getRefreshUri ( )

Definition at line 52 of file MeConfig.php.

Member Data Documentation

◆ ANON_AUTH_URI

const Commercetools\Client\MeConfig::ANON_AUTH_URI = 'https://auth.europe-west1.gcp.commercetools.com/oauth/{projectKey}/anonymous/token'

Definition at line 12 of file MeConfig.php.

◆ GRANT_TYPE

const Commercetools\Client\MeConfig::GRANT_TYPE = 'client_credentials'

Definition at line 15 of file MeConfig.php.

◆ REFRESH_AUTH_URI

const Commercetools\Client\MeConfig::REFRESH_AUTH_URI = 'https://auth.europe-west1.gcp.commercetools.com/oauth/token'

Definition at line 13 of file MeConfig.php.


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