Package DE_EPAGES::PayPalPlus::API::Webservice::RestService
do the request to epagesj
Example |
my $RestService = DE_EPAGES::PayPalPlus::API::Webservice::RestService->new($Shop); if($RestService->post->($URL,$hRequest)){ my $hResponse = $RestService->getResponse(); } else { my $ErrorCode = $RestService->getErrorCode(); my $ErrorMessage = $RestService->getErrorMessage(); } |
Functions
_handleErrors
handle the errors wich can happen
Syntax |
_handleErrors( $Error ); |
Input |
|
getResponse
will return the response as a hash/array
Syntax |
getResponse( ); |
Return |
|
new
constructor
Syntax |
new( ); |
Input |
|
Return |
|
post
does the request to epagesj throws: WebserviceError and rethrow unknown dies
Syntax |
post( $Url,$hRequest ); |
Input |
|
Return |
|
setLogErrorsInComunicationlog
sets a flag so that errors that happen during the request are logged into the communication log instead of the error log.
Syntax |
setLogErrorsInComunicationlog( ); |
Input |
|