Webservice::OVH::Order
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $carts = $ovh->order->carts; my $cart_id = $carts->[0]->id; my $cart = $ovh->order->cart($cart_id); my $new_cart = $ovh->order->new_cart(ovh_subsidiary => 'DE'); $ovh->order->hosting->web; $ovh->order->email->domain; $ovh->order->domain->zone;
Module that support carts and domain/transfer orders at the moment
Internal Method to create the order object. This method is not ment to be called external.
Parameter: $api_wrapper - ovh api wrapper object, $module - root object
Return: Webservice::OVH::Order
Synopsis: Webservice::OVH::Order->_new($ovh_api_wrapper, $self);
Creates a new 'shopping' cart. Items can be put into it, to create orders.
Parameter: %params - key => value (required) ovh_subsidiary => 'DE' (optional) expire => DateTime-str description => "shopping"
Return: Webservice::OVH::Order::Cart
Synopsis: my $cart = $ovh->order->new_cart(ovh_subsidiary => 'DE');
Produces an array of all available carts that are connected to the used account.
Return: ARRAY
Synopsis: my $carts = $ovh->order->carts();
Returns a single cart by id
Parameter: cart_id - cart id
Synopsis: my $cart = $ovh->order->cart(1234567);
Gives Acces to the /order/hosting/ methods of the ovh api
Return: Webservice::OVH::Order::Hosting
Synopsis: $ovh->order->hosting
Gives Acces to the /order/email/ methods of the ovh api
Return: Webservice::OVH::Order::Email
Synopsis: $ovh->order->email
Gives Acces to the /order/domain/ methods of the ovh api
Return: Webservice::OVH::Order::Domain
Synopsis: $ovh->order->domain
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.