- NAME
- SYNOPSIS
- DESCRIPTION
- METHODS
  - _new
  - contacts
  - contact
  - tasks_contact_change
  - task_contact_change
  - orders
  - order
  - bill
  - bills

# 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.

- Parameter: $api_wrapper - ovh api wrapper object, $module - root object

- Return: Webservice::OVH::Me

- Synopsis: Webservice::OVH::Me->_new($ovh_api_wrapper, $self);

## contacts

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

- Return: ARRAY

- Synopsis: my $contacts = $ovh->me->contacs();

## contact

Returns a single contact by id

- Parameter: $contact_id - id

- Return: Webservice::OVH::Me::Contact

- Synopsis: my $contact = $ovh->me->contact(1234567);

## tasks_contact_change

Produces an array of all available contact change tasks.

- Return: ARRAY

- Synopsis: my $tasks = $ovh->me->tasks_contact_change();

## task_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);

## orders

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

- Return: ARRAY

- Synopsis: my $orders = $ovh->me->orders(DateTime->new(), DateTime->new());

## order

Returns a single order by id

- Parameter: $order_id - id

- Return: Webservice::OVH::Me::Order

- Synopsis: my $order = $ovh->me->order(1234567);

## bill

Returns a single bill by id

- Parameter: $bill_id - id

- Return: Webservice::OVH::Me::Bill

- Synopsis: my $order = $ovh->me->bill(1234567);

## bills

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

- Parameter: $date_from - optional filter DateTime, $date_to - optional filter DateTime

- Return: ARRAY

- Synopsis: my $bills = $ovh->me->bills(DateTime->new(), DateTime->new());