1## Domain Registry Interface, OVH Registry Driver 2## 3## Copyright (c) 2008,2009 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. 4## 5## This file is part of Net::DRI 6## 7## Net::DRI is free software; you can redistribute it and/or modify 8## it under the terms of the GNU General Public License as published by 9## the Free Software Foundation; either version 2 of the License, or 10## (at your option) any later version. 11## 12## See the LICENSE file that comes with this distribution for more details. 13# 14# 15# 16######################################################################################### 17 18package Net::DRI::DRD::OVH; 19 20use strict; 21use warnings; 22 23use base qw/Net::DRI::DRD/; 24 25our $VERSION=do { my @r=(q$Revision: 1.3 $=~/\d+/g); sprintf("%d".".%02d" x $#r, @r); }; 26 27=pod 28 29=head1 NAME 30 31Net::DRI::DRD::OVH - OVH Registry driver for Net::DRI 32 33=head1 DESCRIPTION 34 35Please see the README file for details. 36 37=head1 CURRENT LIMITATIONS 38 39Only domain_info and account_list_domains are implemented for now 40 41=head1 SUPPORT 42 43For now, support questions should be sent to: 44 45E<lt>netdri@dotandco.comE<gt> 46 47Please also see the SUPPORT file in the distribution. 48 49=head1 SEE ALSO 50 51E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> 52 53=head1 AUTHOR 54 55Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> 56 57=head1 COPYRIGHT 58 59Copyright (c) 2008,2009 Patrick Mevzek <netdri@dotandco.com>. 60All rights reserved. 61 62This program is free software; you can redistribute it and/or modify 63it under the terms of the GNU General Public License as published by 64the Free Software Foundation; either version 2 of the License, or 65(at your option) any later version. 66 67See the LICENSE file that comes with this distribution for more details. 68 69=cut 70 71#################################################################################################### 72 73sub name { return 'OVH'; } 74sub tlds { return qw/fr com net org info biz eu me.uk co.uk org.uk de be re es/; } ## As seen on http://www.ovh.com/fr/particulier/produits/domaines.xml 75sub object_types { return ('domain'); } 76sub profile_types { return qw/ws/; } 77 78sub transport_protocol_default 79{ 80 my ($self,$type)=@_; 81 82 #return ('Net::DRI::Transport::HTTP::SOAPWSDL',{wsdl_uri => 'https://www.ovh.com/soapi/ovh.wsdl',proxy_uri => 'http://www.ovh.com:1664',servicename => 'managerService',portname => 'managerPort'},'Net::DRI::Protocol::OVH::WS',{}) if $type eq 'ws'; 83 return ('Net::DRI::Transport::HTTP::SOAPLite',{uri => 'https://soapi.ovh.com/manager',proxy_uri => 'https://www.ovh.com:1664'},'Net::DRI::Protocol::OVH::WS',{}) if $type eq 'ws'; 84 return; 85} 86 87#################################################################################################### 88 89sub domain_operation_needs_is_mine 90{ 91 my ($self,$ndr,$domain,$op)=@_; 92 return; 93} 94 95sub account_list_domains 96{ 97 my ($self,$ndr)=@_; 98 my $rc=$ndr->try_restore_from_cache('account','domains','list'); 99 if (! defined $rc) { $rc=$ndr->process('account','list_domains'); } 100 return $rc; 101} 102 103#################################################################################################### 1041; 105