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!

API not working

Discussion in 'General Discussion' started by wirelessoceans, Oct 6, 2005.

  1. wirelessoceans

    wirelessoceans Registered

    Oct 6, 2005
    Likes Received:
    Trophy Points:
    We are am attempting to use the Cpanel Accounting perl module (API). The documentation shows that any errors will show up in the ->{'error'} attribute, i.e.:
    my $whm = new Cpanel::Accounting;
    $whm->{'host'} = $host;
    $whm->{'user'} = $user;
    $whm->{'accesshash'} = $accesshash;
    $whm->{'usessl'} = 1;
    $whm->createacct($domain, $username, $password, $svc);
    if ( $whm->{'error'} ) {#handle error}

    we're not getting any error returned, but also don't see the accounts created in the host section. So we are at a loss as to how to look into it further. If there is a problem creating the account, I would expect Cpanel::Accounting to return an error, which our billing system would then bubble up to the user interface where you can see it...

    Any assistance is appreciated.

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