NAME

Webservice::OVH::Me

SYNOPSIS

use Webservice::OVH;

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

my $contacts = $ovh->me->contacts; my $tasks_contact_change = $ovh->me->tasks_contact_change; my $orders = $ovh->me->orders(DateTime->now->sub(days => -1), DateTime->now); my $bills = $ovh->me->bills(DateTime->now->sub(days => -1), DateTime->now);

my $bill_id = $bills->[0]->id; my $order_id = $orders->[0]->id;

my $bill = $me->ovh->bill($bill_id); my $order = $me->ovh->bill($order_id);

print $bill->pdf_url; print $order->url;

DESCRIPTION

Module support for now only basic retrieval methods for contacs, tasks, orders and bills

METHODS

_new

Internal Method to create the me object. This method is not ment to be called external.

contacts

Produces an array of all available contacts that are stored for the used account.

contact

Returns a single contact by id

tasks_contact_change

Produces an array of all available contact change tasks.

task_contact_change

Returns a single contact change task by id

orders

Produces an array of all available orders. Orders can be optionally filtered by date.

order

Returns a single order by id

bill

Returns a single bill by id

bills

Produces an array of all available bills. Bills can be optionally filtered by date.