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.

API not working

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

  1. wirelessoceans

    wirelessoceans Registered

    Joined:
    Oct 6, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page