NAME

Webservice::OVH - A perl representation of the ovh-api

SYNOPSIS

use Webservice::OVH;

my $ovh = Webservice::OVH->new("credentials.json");

my $ovh = Webservice::OVH->new(application_key => $key, application_secret => $secret, consumer_key => $token);

my $services = $ovh->domain->services;

foreach my $service (@$services) {

    my $last_update = $service->last_update;
    print $last_update->datetime;
}

DESCRIPTION

This module reflects the path structure of the ovh web-api. This is the base object from where all api calls originate.

This module uses the perl api module provided by ovh.

METHODS

new_from_json

Creates an api Object based on credentials in a json File

new

Create the api object. Credentials are given directly via %params Credentials can be generated via ovh web interface and ovh authentification

set_timeout

Sets the timeout of the underlying LWP::Agent

domain

Main access to all /domain/ api methods

me

Main access to all /me/ api methods

order

Main access to all /order/ api methods

email

Main access to all /email/ api methods

cloud

Main access to all /cloud/ api methods

hosting

Main access to all /hosting/ api methods

AUTHOR

Patrick Jendral

COPYRIGHT AND LICENSE

This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.