PHP Class RakutenRws_Client

Afficher le fichier Open project: rakuten-ws/rws-php-sdk Class Usage Examples

Protected Properties

Свойство Type Description
$accessToken
$accessTokenInfo
$affiliateId
$developerId
$httpClient
$options
$redirectUrl
$secret

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Constructor.
public __construct ( RakutenRws_HttpClient $httpClient = null, $options = [] )
$httpClient RakutenRws_HttpClient HTTP Client instance

execute() public méthode

Executes API
public execute ( string $operation, array $parameter = [], string $version = null )
$operation string The operation name
$parameter array The request parameter
$version string The API version

fetchAccessTokenFromCode() public méthode

Fetches OAuth2 AccessToken from Code
public fetchAccessTokenFromCode ( string $code = null ) : string
$code string The Code
Résultat string The Access Token, If response is invalid return null

getAccessToken() public méthode

Gets the fetched AccessToken
public getAccessToken ( ) : string | null
Résultat string | null The AccessToken

getAccessTokenUrl() public méthode

Gets OAuth2 Access Token URL
public getAccessTokenUrl ( ) : string
Résultat string The OAuth2 Access Token URL

getAffiliateId() public méthode

Gets AffilateID
public getAffiliateId ( ) : string | null
Résultat string | null The AffiliateID

getApplicationId() public méthode

Gets DeveloperID
public getApplicationId ( ) : string | null
Résultat string | null The DeveloperID

getAuthorizeUrl() public méthode

Gets OAuth2 Authorize URL
public getAuthorizeUrl ( string $scope ) : string
$scope string The scopes that is separated by ','
Résultat string The Authorize URL

getHttpClient() public méthode

Gets Http Client instance
public getHttpClient ( ) : RakutenRws_HttpClient
Résultat RakutenRws_HttpClient The Http Client

setAffiliateId() public méthode

Sets the AffiliateID
public setAffiliateId ( string $affiliateId )
$affiliateId string The AffiliateID

setApplicationId() public méthode

Sets the DeveloperID
public setApplicationId ( string $developerId )
$developerId string The DeveloperID

setProxy() public méthode

Sets the proxy to use connect rakuten service
public setProxy ( string $proxy )
$proxy string The proxy

setRedirectUrl() public méthode

Sets Redirect Url
public setRedirectUrl ( string $redirectUrl )
$redirectUrl string The Redirect URL

setSecret() public méthode

Sets Application Secret
public setSecret ( string $secret )
$secret string The Application Secret

Property Details

$accessToken protected_oe property

protected $accessToken

$accessTokenInfo protected_oe property

protected $accessTokenInfo

$affiliateId protected_oe property

protected $affiliateId

$developerId protected_oe property

protected $developerId

$httpClient protected_oe property

protected $httpClient

$options protected_oe property

protected $options

$redirectUrl protected_oe property

protected $redirectUrl

$secret protected_oe property

protected $secret