Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2011
    Posts
    7

    Default Cannot get the API to respond when using PHP API Wrapper class ..

    Hi All,

    I am using the following code:

    PHP Code:
    $account "accountUserNameForCPanel";
    $xmlapi = new xmlapi('IpToDomain');
    $xmlapi->password_auth('myrootuser''myrootpass');
    $xmlapi->set_debug(1);
    print 
    $xmlapi->api1_query($account'SubDomain''addsubdomain', array('subdomain''mydomain.com'00'/public_html/')); 
    The problem is that my subdomain isn't created. In fact, when I run any of the examples, they don't work either. I do get an error when I don't enter auth details so it is speaking to the class OK, just doesn't see to work with the API.

    Any ideas?
    Last edited by webnoob; 06-04-2011 at 08:07 AM.

  2. #2
    Member
    Join Date
    Jun 2011
    Posts
    7

    Default Re: Cannot get the API to respond when using PHP API Wrapper class ..

    Nevermind, managed to get this working fine. Turns out the password was incorrect

Similar Threads & Tags
Similar threads

  1. Using Cpanel via php class/api
    By Sillysoft in forum cPanel Developers
    Replies: 2
    Last Post: 06-09-2011, 03:16 PM
  2. XML API PHP Class version 1.0
    By cPanelMatt in forum cPanel Developers
    Replies: 107
    Last Post: 02-24-2011, 08:38 AM
  3. cPanel API - PHP Class vs. Email Responder
    By Jack.Straw in forum cPanel Developers
    Replies: 2
    Last Post: 09-08-2010, 01:15 PM
  4. cPanel API - PHP Class vs. Email Responder
    By Jack.Straw in forum E-mail Discussions
    Replies: 0
    Last Post: 09-02-2010, 11:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube