API Help

Discussion in 'General' started by warlock, Jul 25, 2012.

  1. warlock

    warlock New Member

    Hi Guys,

    I just need a quick nudge in the right direction,
    I have downloaded the remote_client from the tar file and I am testing
    the dns_a_get.php I have configured the soap_client.php and I can see that I am getting a successfull login and logout "so far all good"

    I now want to pass a parma. to the website to retrieve some info

    http://www.example.com/dns_a_get.php?zone=mydomain.com

    please can some one tell me how and what to pass in order to retrieve the details from mydomain.com

    Shot
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The example files are not made to pass params to them, the params are defined inside the files.

    To get the A-Record mydomain.com use this command in your script:

    Code:
    $dns_record = $client->dns_a_get($session_id, array('type' => 'A', 'name' => 'mydomain.com%'));
     
  3. warlock

    warlock New Member

    Thanks Till,

    I remember now
     

Share This Page