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.

Starting With WHM XML API?

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

  1. azoundria

    azoundria Member

    Joined:
    Apr 28, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    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.
     
Loading...

Share This Page