Свойство | Тип | Описание | |
---|---|---|---|
$accessToken | |||
$accessTokenInfo | |||
$affiliateId | |||
$developerId | |||
$httpClient | |||
$options | |||
$redirectUrl | |||
$secret |
Метод | Описание | |
---|---|---|
__construct ( RakutenRws_HttpClient $httpClient = null, $options = [] ) | Constructor. | |
execute ( string $operation, array $parameter = [], string $version = null ) | Executes API | |
fetchAccessTokenFromCode ( string $code = null ) : string | Fetches OAuth2 AccessToken from Code | |
getAccessToken ( ) : string | null | Gets the fetched AccessToken | |
getAccessTokenUrl ( ) : string | Gets OAuth2 Access Token URL | |
getAffiliateId ( ) : string | null | Gets AffilateID | |
getApplicationId ( ) : string | null | Gets DeveloperID | |
getAuthorizeUrl ( string $scope ) : string | Gets OAuth2 Authorize URL | |
getHttpClient ( ) : RakutenRws_HttpClient | Gets Http Client instance | |
setAffiliateId ( string $affiliateId ) | Sets the AffiliateID | |
setApplicationId ( string $developerId ) | Sets the DeveloperID | |
setProxy ( string $proxy ) | Sets the proxy to use connect rakuten service | |
setRedirectUrl ( string $redirectUrl ) | Sets Redirect Url | |
setSecret ( string $secret ) | Sets Application Secret |
public __construct ( RakutenRws_HttpClient $httpClient = null, $options = [] ) | ||
$httpClient | RakutenRws_HttpClient | HTTP Client instance |
public fetchAccessTokenFromCode ( string $code = null ) : string | ||
$code | string | The Code |
Результат | string | The Access Token, If response is invalid return null |
public getAccessToken ( ) : string | null | ||
Результат | string | null | The AccessToken |
public getAccessTokenUrl ( ) : string | ||
Результат | string | The OAuth2 Access Token URL |
public getAffiliateId ( ) : string | null | ||
Результат | string | null | The AffiliateID |
public getApplicationId ( ) : string | null | ||
Результат | string | null | The DeveloperID |
public getAuthorizeUrl ( string $scope ) : string | ||
$scope | string | The scopes that is separated by ',' |
Результат | string | The Authorize URL |
public getHttpClient ( ) : RakutenRws_HttpClient | ||
Результат | RakutenRws_HttpClient | The Http Client |
public setAffiliateId ( string $affiliateId ) | ||
$affiliateId | string | The AffiliateID |
public setApplicationId ( string $developerId ) | ||
$developerId | string | The DeveloperID |
public setRedirectUrl ( string $redirectUrl ) | ||
$redirectUrl | string | The Redirect URL |