Method | Description | |
---|---|---|
__construct ( $url ) | ||
getAPIVersion ( $fileName = __FILE__ ) : String | ||
getAppVersion ( ) : string | Get version of installed application | |
getDebug ( ) | ||
getMessage ( ) | ||
getRoleType ( ) | ||
getSessionId ( ) | ||
getUrl ( ) | ||
getUrlWithSessionInfo ( $url ) | ||
login ( $username, $password, $roleType = self::MERCHANT, $languageCode = null ) : boolean | ||
loginWithAuthToken ( $authtoken, $roleType = self::MERCHANT, $languageCode = null ) : boolean | ||
setDebug ( $debug = true ) | ||
setSessionId ( $sessionId, $roleType = self::MERCHANT ) |
Method | Description | |
---|---|---|
checkApiVersion ( Gpf_Rpc_Form $form ) | Check API version (has to be protected because of Drupal integration) | |
getAuthenticateClassName ( ) |
Method | Description | |
---|---|---|
authenticateRequest ( $username, $password, $authtoken, $roleType = self::MERCHANT, $languageCode = null ) : boolean | ||
setMessage ( $msg ) |
protected checkApiVersion ( Gpf_Rpc_Form $form ) | ||
$form | Gpf_Rpc_Form |
public static getAPIVersion ( $fileName = __FILE__ ) : String | ||
return | String |
public getAppVersion ( ) : string | ||
return | string | version of installed application |
public login ( $username, $password, $roleType = self::MERCHANT, $languageCode = null ) : boolean | ||
$username | ||
$password | ||
$roleType | Gpf_Api_Session::MERCHANT or Gpf_Api_Session::AFFILIATE | |
$languageCode | language code (e.g. en-US, de-DE, sk, cz, du, ...) | |
return | boolean | true if user was successfully logged |
public loginWithAuthToken ( $authtoken, $roleType = self::MERCHANT, $languageCode = null ) : boolean | ||
$authtoken | ||
$roleType | Gpf_Api_Session::MERCHANT or Gpf_Api_Session::AFFILIATE | |
$languageCode | language code (e.g. en-US, de-DE, sk, cz, du, ...) | |
return | boolean | true if user was successfully logged |