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.

WHM account creation using the cpanel api

Discussion in 'cPanel Developers' started by boy119, Apr 17, 2013.

  1. boy119

    boy119 Registered

    Joined:
    Apr 17, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi all,
    I'm bluehost reseller.I want to creat account with cpanel API.But,I found some error.
    [17-Apr-2013 16:22:16] URL: /https://whm.bluehost.com:2087/xml-api/createacct

    [17-Apr-2013 16:22:16] DATA: username=username&password=1234567&domain=domain.com&plan=default

    [17-Apr-2013 16:22:16] Authentication Header: Authorization: Basic Ymhvbdd




    [17-Apr-2013 16:22:19] RESPONSE:
    <createacct>
    <result>
    <options></options>
    <rawout></rawout>
    <status>0</status>
    <statusmsg>Sorry, that's an invalid domain
    </statusmsg>
    </result>
    </createacct>

    <!-- Web Host Manager 11.32.6.3 (c) cPanel, Inc. 2012 cPanel Inc | Point.Click.Host. Unauthorized copying is prohibited. -->


    [17-Apr-2013 16:22:19] SimpleXML var_dump:
    SimpleXMLElement Object
    (
    [result] => SimpleXMLElement Object
    (
    [options] => SimpleXMLElement Object
    (
    )

    [rawout] => SimpleXMLElement Object
    (
    )

    [status] => 0
    [statusmsg] => Sorry, that's an invalid domain

    )

    )
     
  2. boy119

    boy119 Registered

    Joined:
    Apr 17, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I use the script connect hawkhost is right,but can't connect bluehost. What's the cause?
     
Loading...

Share This Page