Re: Bulk Order

From: Jason Beebe (jason@vsn1.com)
Date: Fri Jan 10 2003 - 12:59:14 EST


Just to clearify, I am not using the OpenSRS Perl client. I am creating my own client from scratch with PHP. I am not refering to register.cgi?action=bulk_order, nor any code or examples found in the OpenSRS Perl client. If we are on the same page, then...

Ok, so when I call the "sw_register" action I can use the attribute "bulk_order"? Where are all the domains listed then? Like I said, I see nothing in the docs that make reference to bulk ordering, so I need some more insight or an example of the array I need to build to push it to OpenSRS. Here is a code snippet that someone else had written, and as you can see, they are passing an attribute called bulk_order, but how it is utilized it beyond me.

Bottom line, I send multiple domain registrations through with one single command to OpenSRS as depicted below? Or, must I use logic in my own code to loop through each domain the customer has choosen and make individual sw_register calls.

$cmd=array('protocol'=>'XCP',
       'action'=>'SW_REGISTER',
       'object'=>'DOMAIN',
       'attributes'=>array('domain'=>$domain,
               'reg_type'=>'new',
            'reg_username'=>$username,
            'reg_password'=>$password,
            'reg_domain'=>$linkdomain,
            'bulk_order'=>$bulk_order,
            .......................
  ----- Original Message -----
  From: Charles Daminato
  To: Jason Beebe ; dev-list@opensrs.org
  Sent: Friday, January 10, 2003 10:43 AM
  Subject: RE: Bulk Order

  That's what the bulk_order does, fundamentally, is loop through sw_register calls.

  :)

  Charles Daminato
  OpenSRS Product Manager
  Tucows Inc. - chuck@tucows.com
    -----Original Message-----
    From: owner-dev-list@opensrs.org [mailto:owner-dev-list@opensrs.org]On Behalf Of Jason Beebe
    Sent: January 10, 2003 12:35 PM
    To: dev-list@opensrs.org
    Subject: Bulk Order

    Hi,

    I am writing a custom client. I noticed in some sample code there is a "bulk_order" attribute. However, in the documentation it makes no reference (that I have found) to the "bulk_order" attribute or if bulk ordering is possible. Basically, if a customer wants to register 10 new domains, is there a bulk ordering feature that sends and links all 10 domains through in one call to OpenSRS. Or, do I have to loop through them, 1 by 1, making individual individual register (sw_register) calls.

    Thanks for the insight!

    Jason



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:33 EDT