Net::YAR

Perl interface to the YAR (Yet Another Registrar) API
Download

Net::YAR Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Paul Seamons
  • Publisher web site:
  • http://search.cpan.org/~rhandom/

Net::YAR Tags


Net::YAR Description

Perl interface to the YAR (Yet Another Registrar) API Net::YAR is a module that provides a Perl interface to the FastDomain YAR (Yet Another Registrar) API Service. In order to use this module, you must have an agent account setup at either FastDomain.com or another registrar that supports the YAR API. If you would like to register domains using this API please contact either FastDomain.com or the YAR API registrar of choice.You will also need to have one of JSON, YAML, YAML::Syck, XML::Simple, or Data::URIEncode installed to facilitate serializing and deserializing the requests to the YAR service.SYNOPSIS use Net::YAR; my $yar = Net::YAR->new({ api_user => 'my_user', api_pass => 'my_pass', api_host => 'api.fastdomain.com', }); ### test if the server can connect my $resp = $yar->util->noop; # calls YAR method util.noop # OR # my $resp = $yar->util_noop; # calls YAR method util.noop ### information to register a domain in one pass my $domain_info = { user => { username => "some_username", password => '123qwe', email => 'foo@my.company.com', phone => '+1.8017659400', first_name => 'George', last_name => 'Jones', }, domain => 'sometestdomain.com', duration => 2, registrant => {contact_id => 'admin'}, admin => { first_name => 'George', last_name => 'Jones', organization => 'My Company Test', email => 'foo@my.company.com', street1 => 'Techway', street2 => '', city => 'Orem', province => 'UT', postal_code => '84058', country => 'US', phone => '+1.8017659400', fax => '', }, billing => {contact_id => 'admin'}, tech => {contact_id => 'admin'}, nameservers => , }; my $r = $yar->domain->register($domain_info); my $info = $r->data; # info now contains # $info->{'domain_id'} The id of the created domain # $info->{'contact_id_admin'} The admin contact handle id # $info->{'contact_id_registrant'}, The registrant contact handle id # $info->{'contact_id_billing'}, The billing contact handle id # $info->{'contact_id_tech'}, The tech contact handle id # $info->{'user_id'}, The id of the new user # $info->{'offer_id'}, The id of the offer used # $info->{'invoice_id'}, The id of the new invoice # $info->{'order_id'}, The id of the new order Requirements: · Perl


Net::YAR Related Software