Jump to content

Api action "ModuleCustom" cPanel/WHM - what are the options?


onklmaps

Recommended Posts

I want to be able to create MySQL databases from WHMCS.

 

So I have setup a working connection to WHMCS API. I know it works, since I create accounts and all.

 

So... I try to use the "ModuleCustom" to run some WHM/cPanel api functions:

  • create database
  • create db user
  • assign db user to database.

 

Finding the right commands in the whm documentation isn't hard, but trying to figure out how to run them from the whmcs api, is..

 

Is it even possible to run whm api functions through the whmcs api?

What whm API is used? API 0, API 1 or UAPI?

Can I use ANY whm api functions?

 

What ever I try I get this response:

!Function not found in module!

Link to comment
Share on other sites

Nothing?

 

I actually made a script myself using the normal cPanel api that i run from a hook in WHMCS.

But I would'nt say this is "solved" because, I would prefer to run the cPanel UAPI call via the ModuleCustom in WHMCS.

 

1. What whm/cpanel api does WHMCS use (WHM 0, WHM 1, cPanel UAPI)? (I fear its only connecting to WHM and not cPanel).

2. Can ANY whm/cpanel api call be used or are some hard coded in the WHMCS-cPanel module?

 

Anyone knows?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated