메소드 | 설명 | |
---|---|---|
__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 ) |
메소드 | 설명 | |
---|---|---|
checkApiVersion ( Gpf_Rpc_Form $form ) | Check API version (has to be protected because of Drupal integration) | |
getAuthenticateClassName ( ) |
메소드 | 설명 | |
---|---|---|
authenticateRequest ( $username, $password, $authtoken, $roleType = self::MERCHANT, $languageCode = null ) : boolean | ||
setMessage ( $msg ) |
protected checkApiVersion ( Gpf_Rpc_Form $form ) | ||
$form | Gpf_Rpc_Form |
public getAppVersion ( ) : string | ||
리턴 | string | version of installed application |
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, ...) | |
리턴 | boolean | true if user was successfully logged |