资源说明:Ruby api for the arp-client from cps-datensysteme.de
h1. CPS-CLIENT Ruby api for the arp-client of cps-datensysteme.de h2. Installationh2. Howto register a domain Create a cps-client object:sudo gem install cps-client bundle # to install dependencies
Create a client contact handle:server = CPS::Client.new( :cid => 'your-cid', :uid => 'your-uid', :pwd => 'your-pwd', :production => false # for development )
Create your company contact handle:client_contact = CPS::Contact.new( :object => 'QD1234', :firstname => 'Peter', :lastname => 'Pan', :street => 'your-street', :postal => '60000', :city => 'Frankfurt am Main', :state => 'Hessen', :iso_country => 'DE', :phone => '+49 69471117', :fax => '+49 69471118', :email => 'peter.pan@example.com' ) server.query(client_contact.create)
Register the domain:company_contact = CPS::Contact.new( :object => 'QD0001', :firstname => 'Paulär', :lastname => 'Panter', :street => 'my-street', :postal => '60000', :city => 'Frankfurt am Main', :state => 'Hessen', :iso_country => 'DE', :phone => '+49 69471123', :fax => '+49 69471124', :email => 'paulaer.panter@example.com' ) server.query(company_contact.create)
h2. Todo - Add validation and error handling - Add modify and transfer for domains (c) 2011 jfqd [at] blun.orgdomain = CPS::Domain.new( :domain => 'example-domain-123456.com', :adminc => 'QD1234', :ownerc => 'QD1234', :techc => 'QD0001', :billc => 'QD0001', :ns1 => 'my1.dns.com', :ns2 => 'my2.dns.com' ) server.query(domain.create)
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。