The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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

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

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

bill

Returns a single bill by id

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());