NAME

Webservice::OVH

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

The base object from which every api call is done. The object structure represents the ovh api structure. 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