Webservice::OVH
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;
}
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
Creates an api Object based on credentials in a json File
Parameter: $file_json - dir to json file
Return: Webservice::OVH
Synopsis: Webservice::OVH->new_from_json("path/file");
application_key is generated when creating an application via ovh web interface
application_secret is generated when creating an application via ovh web interface
consumer_key must be requested through ovh authentification
timeout timeout in milliseconds, warning some request may take a while
Create the api object. Credentials are given directly via %params Credentials can be generated via ovh web interface and ovh authentification
Parameter: %params - application_key => value, application_secret => value, consumer_key => value
Return: Webservice::OVH
Synopsis: Webservice::OVH->new(application_key => $key, application_secret => $secret, consumer_key => $token);
Sets the timeout of the underlying LWP::Agent
Parameter: timeout - in milliseconds default 120
Synopsis: Webservice::OVH->set_timeout(120);
Main access to all /domain/ api methods
Return: Webservice::OVH::Domain
Synopsis: $ovh->domain;
Main access to all /me/ api methods
Return: Webservice::OVH::Me
Synopsis: $ovh->me;
Main access to all /order/ api methods
Return: Webservice::OVH::Order
Synopsis: $ovh->order;
Main access to all /email/ api methods
Return: Webservice::OVH::Email
Synopsis: $ovh->email;