cps-client
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Ruby api for the arp-client from cps-datensysteme.de
h1. CPS-CLIENT

Ruby api for the arp-client of cps-datensysteme.de

h2. Installation

sudo gem install cps-client
bundle # to install dependencies
h2. Howto register a domain Create a cps-client object:
server = CPS::Client.new(
  :cid => 'your-cid',
  :uid => 'your-uid',
  :pwd => 'your-pwd',
  :production => false # for development
)
Create a client 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)
Create your company contact handle:
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)
Register the domain:
domain = 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)
h2. Todo - Add validation and error handling - Add modify and transfer for domains (c) 2011 jfqd [at] blun.org

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。