Marketplace::Rakuten::Response - Class to handle the responses from webservice.rakuten.de
The constructors keys map the HTTP::Tiny keys, so you can feed the constructor straight with the response.
Boolean indicating whether the operation returned a 2XX status code
URL that provided the response. This is the URL of the request unless there were redirections, in which case it is the last URL queried in a redirection chain
The HTTP status code of the response
The response phrase returned by the server
The body of the response. If the response does not have any content or if a data callback is provided to consume the response body, this will be the empty string
A hashref of header fields. All header field names will be normalized to be lower case. If a header is repeated, the value will be an arrayref; it will otherwise be a scalar string containing the value
The parsed data from xml, if any.
Check that the http status is ok and that there are no errors.
Return, if any, a list of hashrefs with errors. The expected keys of each element are: code message help
code
message
help
http://webservice.rakuten.de/documentation/howto/error
Return an arrayref of error, if any. If there is no error, return undef.
The errors returned as a single string.
To install Marketplace::Rakuten, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Marketplace::Rakuten
CPAN shell
perl -MCPAN -e shell install Marketplace::Rakuten
For more information on module installation, please visit the detailed CPAN module installation guide.