| 1 | ## Domain Registry Interface, OVH Web Services Protocol | ||
| 2 | ## As seen on http://www.ovh.com/soapi/fr/ and http://www.verot.org/ovhapi/ and http://wikikillers.eu/ | ||
| 3 | ## | ||
| 4 | ## Copyright (c) 2008-2010,2013 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. | ||
| 5 | ## | ||
| 6 | ## This file is part of Net::DRI | ||
| 7 | ## | ||
| 8 | ## Net::DRI is free software; you can redistribute it and/or modify | ||
| 9 | ## it under the terms of the GNU General Public License as published by | ||
| 10 | ## the Free Software Foundation; either version 2 of the License, or | ||
| 11 | ## (at your option) any later version. | ||
| 12 | ## | ||
| 13 | ## See the LICENSE file that comes with this distribution for more details. | ||
| 14 | #################################################################################################### | ||
| 15 | |||
| 16 | package Net::DRI::Protocol::OVH::WS; | ||
| 17 | |||
| 18 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 1 | ▶ | use base qw(Net::DRI::Protocol); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | use Net::DRI::Protocol::OVH::WS::Message; | ||
| 23 | |||
| 24 | =pod | ||
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | Net::DRI::Protocol::OVH::WS - OVH Web Services Protocol for Net::DRI | ||
| 29 | |||
| 30 | =head1 DESCRIPTION | ||
| 31 | |||
| 32 | Please see the README file for details. | ||
| 33 | |||
| 34 | =head1 SUPPORT | ||
| 35 | |||
| 36 | For now, support questions should be sent to: | ||
| 37 | |||
| 38 | E<lt>netdri@dotandco.comE<gt> | ||
| 39 | |||
| 40 | Please also see the SUPPORT file in the distribution. | ||
| 41 | |||
| 42 | =head1 SEE ALSO | ||
| 43 | |||
| 44 | E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> | ||
| 49 | |||
| 50 | =head1 COPYRIGHT | ||
| 51 | |||
| 52 | Copyright (c) 2008-2010,2013 Patrick Mevzek <netdri@dotandco.com>. | ||
| 53 | All rights reserved. | ||
| 54 | |||
| 55 | This program is free software; you can redistribute it and/or modify | ||
| 56 | it under the terms of the GNU General Public License as published by | ||
| 57 | the Free Software Foundation; either version 2 of the License, or | ||
| 58 | (at your option) any later version. | ||
| 59 | |||
| 60 | See the LICENSE file that comes with this distribution for more details. | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | #################################################################################################### | ||
| 65 | |||
| 66 | sub new | ||
| 67 | { | ||
| 68 | my ($c,$ctx,$rp)=@_; | ||
| 69 | my $self=$c->SUPER::new($ctx); | ||
| 70 | $self->name('ovh_ws'); | ||
| 71 | $self->version('1.4.1'); | ||
| 72 | $self->factories('message',sub { my $m=Net::DRI::Protocol::OVH::WS::Message->new(); $m->version('1.4.1'); return $m; }); | ||
| 73 | $self->_load($rp); | ||
| 74 | return $self; | ||
| 75 | } | ||
| 76 | |||
| 77 | sub _load | ||
| 78 | { | ||
| 79 | my ($self,$rp)=@_; | ||
| 80 | my @class=map { 'Net::DRI::Protocol::OVH::WS::'.$_ } (qw/Account Domain/); | ||
| 81 | return $self->SUPER::_load(@class); | ||
| 82 | } | ||
| 83 | |||
| 84 | sub transport_default | ||
| 85 | { | ||
| 86 | my ($self)=@_; | ||
| 87 | return (protocol_connection => 'Net::DRI::Protocol::OVH::WS::Connection', protocol_version => '1.4.1'); | ||
| 88 | } | ||
| 89 | |||
| 90 | #################################################################################################### | ||
| 91 | 1; | ||