Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Get in the cpanel codeigniter using xml-rpc

Discussion in 'cPanel Developers' started by zerutreck, Mar 25, 2009.

  1. zerutreck

    zerutreck Member

    Joined:
    Oct 9, 2006
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    I need to connect using the cpanel codeigniter.

    The address of cpanel I need is this link:

    https: / / codeigniter.com.br: 2083 /

    Of course, passing the username and password from the cpanel.

    Do you have any example of how to log in cpanel using the http://codeigniter.com/user_guide/libraries/xmlrpc.html ?

    XML-API cPanel
    http://www.cpanel.net/plugins/xmlapi/cpanel.html

    XML-RPC CodeIgniter
    http://codeigniter.com/user_guide/libraries/xmlrpc.html

    My code
    http://pastebin.com/m119c78c0

    See my code, I made some attempts but got no success

    Example done manually:
    https://codeigniter.com.br:2083/xml-api/cpanel?user=codeign&xmlin;=<cpanelaction><module>Park</module><func>listparkeddomains</func></cpanelaction>

    Putting it there in the browser and typing the login and password for cpanel it lists the parked domains Account. This is what I do with Code Igniter.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The library you referred to ("codeigniter") is for XML RPCs. Our XML API is not a XML RPC, so it is unlikely that library will work.

    If you are looking for sample PHP code for use with our XML APIs, I recommend looking at posts in the Developers section of the forums.

    ** Moved Post to Developers Section **
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice