package Ambassador::API::V2::Role::Response; Ambassador::API::V2:: # ABSTRACT: A response from the getambassador.com API v2
Encapsulates the Ambassador Response Format.
See https://docs.getambassador.com/docs/response-codes.
The original HTTP::Tiny response.
The Ambassador "response" as a hash ref.
The Ambassador "code" field.
NOT the HTTP repsonse code.
The Ambassador "message" field.
my $response = Ambassador::API::V2::Response->new_from_response( $http_tiny_response );
Returns a new object from an HTTP::Tiny response hash ref.
Returns whether the repsonse was successful or not.
Ambassador::API::V2::Result Ambassador::API::V2::Error
The source code repository for Ambassador-API-V2 can be found at https://github.com/dreamhost/Ambassador-API-V2.
Copyright 2016 Dreamhost <dev-notify@hq.newdream.net>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
To install Ambassador::API::V2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ambassador::API::V2
CPAN shell
perl -MCPAN -e shell install Ambassador::API::V2
For more information on module installation, please visit the detailed CPAN module installation guide.