Webservice::OVH::Me
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;
Module support for now only basic retrieval methods for contacs, tasks, orders and bills
Internal Method to create the me object. This method is not ment to be called external.
Parameter: $api_wrapper - ovh api wrapper object, $module - root object
Return: Webservice::OVH::Me
Synopsis: Webservice::OVH::Me->_new($ovh_api_wrapper, $self);
Produces an array of all available contacts that are stored for the used account.
Return: ARRAY
Synopsis: my $contacts = $ovh->me->contacs();
Returns a single contact by id
Parameter: $contact_id - id
Return: Webservice::OVH::Me::Contact
Synopsis: my $contact = $ovh->me->contact(1234567);
Produces an array of all available contact change tasks.
Synopsis: my $tasks = $ovh->me->tasks_contact_change();
Returns a single contact change task by id
Parameter: $task_id - id
Return: Webservice::OVH::Me::Task
Synopsis: my $contact = $ovh->me->task_contact_change(1234567);
Produces an array of all available orders. Orders can be optionally filtered by date.
Parameter: $date_from - optional filter DateTime, $date_to - optional filter DateTime
Synopsis: my $orders = $ovh->me->orders(DateTime->new(), DateTime->new());
Returns a single order by id
Parameter: $order_id - id
Return: Webservice::OVH::Me::Order
Synopsis: my $order = $ovh->me->order(1234567);
Returns a single bill by id
Parameter: $bill_id - id
Return: Webservice::OVH::Me::Bill
Synopsis: my $order = $ovh->me->bill(1234567);
Produces an array of all available bills. Bills can be optionally filtered by date.
Synopsis: my $bills = $ovh->me->bills(DateTime->new(), DateTime->new());
To install Webservice::OVH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::OVH
CPAN shell
perl -MCPAN -e shell install Webservice::OVH
For more information on module installation, please visit the detailed CPAN module installation guide.