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!

Starting With WHM XML API?

Discussion in 'General Discussion' started by azoundria, Jan 2, 2010.

  1. azoundria

    azoundria Member

    Apr 28, 2007
    Likes Received:
    Trophy Points:

    I've been trying to locate a good tutorial to get started with XML API for WHM, however I'm not having much luck. I do not want to use a script someone else built, because I want to understand how it works and build it myself.

    I'm locked out from changing passwords through PHP HTTP requests with the new version of cPanel/WHM, so I figured that'd be a good place to start.

    What are the various steps necessary to connect to a cPanel/WHM server, authenticate, and change a client password? I do not have root access, however I should have access to all necessary PHP functionality.

    It would be awesome if the final code would be able to handle these cases:
    - Account doesn't exist.
    - Password doesn't meet WHM criteria.

    I am quite experience with PHP, however I've never really used fsockopen or similar before. (I think this is how it's done.) Thanks for your help.

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