REST Api

Discussion in 'Developers' Forum' started by gody, Feb 23, 2017.

  1. gody

    gody Member

    Hello,

    I'm trying to get the same result with the API
    SOAP : $result= $client->dns_a_get($session_id, array('zone' => $id, 'name' => 'www'));
    JSON : $result = restCall('dns_a_get', array('session_id' => $session_id, .... What to put here ? ... ));

    Thanks,
    Gody
     
  2. gody

    gody Member

    Found...
    $result = restCall('dns_a_get', array('session_id' => $session_id, 'primary_id' => array('zone' => $id, 'name' => 'www') ));
     
  3. liane

    liane Member HowtoForge Supporter

    thanks, nice find!
    OTOH, maybe it is a little counter-intuitive... or the REST interface needs a little polishing?
     
  4. gody

    gody Member

    TIll say me the advanced query function exists already in 3.0.5.
    Maybe the Doc need an update.
     

Share This Page