RE: Domain locking - anyway to automate ?

From: Andy Coates (andy@bribed.net)
Date: Tue Oct 08 2002 - 04:22:32 EDT


> We want to drive domain locking from our database system, and it looks
> like locking can only be set from the reseller interface.
>
> Is this true or is there an API for it ?

There's an API for it.

Have a look at the API under the "Modify Domain" entry, there's a data
field called "status" combined with "lock_state" to set the appropriate
value.

In PHP it looks like this (needing the $cookie and the $status you want
it set to):

  $cmd = array(
    'action' => 'modify',
    'object' => 'domain',
    'cookie' => $cookie,
    'attributes' => array (
      'data' => 'status',
      'lock_state' => $status
    )
  );

HTH,
Andy.



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