WebService::DigitalOcean::Role::UserAgent - User Agent Role for DigitalOcean WebService
version 0.025
Role used to make requests to the DigitalOcean API, and to format their response.
my $res = $self->make_request(POST => '/domains', { name => 'example.com', ip_address => '12.34.56.78', });
Str
The HTTP verb, such as POST, GET, PUT, etc.
Path to the resource in the URI, to be prepended with $self->api_base_url.
HashRef
The content to be JSON encoded and sent to DigitalOcean's API.
HashRef containing:
Bool
Shortcut to $res->{response_object}{is_success}.
Shortcut to $res->{response_object}{status_line}.
The JSON decoded content the API has responded with.
RateLimit headers parsed.
Int
Makes requests to the DigitalOcean, and parses the response.
All requests made from other methods use "make_request" to make them.
More info: https://developers.digitalocean.com/#introduction.
André Walker <andre@cpan.org>
This software is Copyright (c) 2015 by André Walker.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
To install WebService::DigitalOcean, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::DigitalOcean
CPAN shell
perl -MCPAN -e shell install WebService::DigitalOcean
For more information on module installation, please visit the detailed CPAN module installation guide.