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!

SOLVED cPanel plugin - access account package info?

Discussion in 'cPanel Developers' started by CloudNexus, Jun 10, 2018.

  1. CloudNexus

    CloudNexus Member

    Joined:
    May 18, 2018
    Messages:
    16
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Hi there,

    I was wondering whether there is an api available that I can use in my cPanel plugin to get the package options or account options? In WHM we've got the Accounts::accountsummary api that we can use to get all the info on a given account, but for cPanel (i checked Api v1,v2, and UAPI) there doesn't seem to be a way for my plugin to retrieve this info.

    This is a bit of an issue, as I have certain limits in the package configuration (similar to max number of SQL databases) that I need to enforce in the frontend, but I can't do this if I don't know how many the user is allowed to have.

    Any hints / tips on this?
     
  2. CloudNexus

    CloudNexus Member

    Joined:
    May 18, 2018
    Messages:
    16
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
  3. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,221
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @CloudNexus

    Thanks for letting us know that you found a solution to your issue and what it was, glad to hear the LivePHP api will allow you to get the information you need.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    CloudNexus likes this.
  4. CloudNexus

    CloudNexus Member

    Joined:
    May 18, 2018
    Messages:
    16
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    You may mark this as resolved :)
     
  5. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,221
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @CloudNexus

    I've gone ahead and done that! Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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