-
-
27 Jan 2015 03:52:35 UTC
- Distribution: Amazon-SES
- Module version: 0.06
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (266 / 2 / 0)
- Kwalitee
Bus factor: 0- 97.56% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (17.26KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Rusty Conover
- Dependencies
- AWS::Signature4
- Carp
- Email::Sender::Transport
- HTTP::Headers
- HTTP::Request::Common
- JSON::XS
- Kavorka
- LWP::UserAgent
- MIME::Base64
- Moo
- MooX::Types::MooseLike::Base
- Moops
- Time::Piece
- VM::EC2::Security::CredentialCache
- XML::Simple
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Amazon::SES::Response - Perl class that represents a response from AWS SES
SYNPOSIS
# see Amazon::SES
DESCRIPTION
This class is not meant to be used directly, but through Amazon::SES. First you should be familiar with Amazon::SES and only then come back to this class for new information
METHODS
result()
Returns parsed contents of the response. This is usually the contents of
*Result
element. Exception is the error response, in which case it returns the ontents ofError
element.message_id()
Returns a message id for successfully sent e-mails. Only valid for successful requests.
result_as_json()
Same as
result()
, except converts the data into JSON notationraw_content()
This is the raw (unparsed) by decoded HTTP content as returned from the AWS SES. Usually you do not need it. If you think you need it just knock yourself out!
is_success()
is_error()
This is the first thing you should check after each request().
http_code()
Since all the api request/response happens using HTTP Query actions, this code returns the HTTP response code. For all successfull response it returns
200
, errors usually return400
. This is here just in caseerror_code()
Returns an error code from AWS SES. Unlik
http_code()
, this is a short error message, as documented in AWS SES API referenceerror_message()
Returns more descriptive error message from AWS SES
error_type()
Returns the type of the error. Most of the time in my experience it returns
Sender
.request_id()
Returns an ID of the request. All response, including the ones resulting in error, contain a RequestId.
dkim_attributes()
The same as
$response->result->{DkimAttributes}
Only meaning for get_dkim_attributes() api call
SEE ALSO
AUTHOR
Rusty Conover <rusty@luckydinosaur.com>
Sherzod B. Ruzmetov <sherzodr@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2014 by Lucky Dinosaur, LLC http://www.luckydinosaur.com
Portions Copyright (C) 2013 by Talibro LLC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Amazon::SES, copy and paste the appropriate command in to your terminal.
cpanm Amazon::SES
perl -MCPAN -e shell install Amazon::SES
For more information on module installation, please visit the detailed CPAN module installation guide.