The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FetchZone fails, but fetchzones works

Discussion in 'cPanel Developers' started by veeco, Sep 1, 2014.

  1. veeco

    veeco Registered

    Joined:
    Jun 26, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,
    this is my first day with XML API (and its wrapper). After authentication, i'm able to have my fetchzones:

    $result = $xmlapi->api2_query($my_user, "ZoneEdit", "fetchzones");

    this one works... but for fetchzone:

    $result = $xmlapi->api2_query($my_user, "ZoneEdit", "fetchzone",array("","","mydomain.com"));

    i got error with this message inside it:
    "You do not have permission to read the zone for :"

    Any idea whats wrong ? do i miss something ?

    Thanks
     
Loading...

Share This Page