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 Resellerstats to get current user bandwidth and space usage?

Discussion in 'cPanel Developers' started by Saeven, Sep 16, 2016.

  1. Saeven

    Saeven Active Member

    Joined:
    Jun 23, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ottawa
    cPanel Access Level:
    Reseller Owner
    Twitter:
    To develop a WHM plugin for myself, I've signed up for a cPanel account from ResellerClub -- everything is working well -- save for a means to discover how much space or bandwidth I have left.

    The API docs list this command:
    WHM API 1 Functions - resellerstats - Software Development Kit - cPanel Documentation

    Seems the right one, save that when I pass my own username as its 'user' parameter, I am met with Access Denied.

    Is this by design, on that API endpoint? OR, is this something that ResellerClub has done to me?

    Thank you!
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    For plugin development I will always suggest to get a test server with root access. Do you have root access for the account ? If not try the same after getting a test server with 1 G ram and then install cpanel and test the same. Once plugin is ready , you will be able to run the plugin as reseller as well (if installed in the server).
     
  3. Saeven

    Saeven Active Member

    Joined:
    Jun 23, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ottawa
    cPanel Access Level:
    Reseller Owner
    Twitter:
    Thanks for writing NixTree!

    I got my paws on a Reseller plan from ResellerClub in order to develop. I tried to put myself in the shoes of those who'll be using the software I'm working on. Everything has gone well so far, save for resource discovery.

    Resellers have API access and a resource pool; there has to be some means for them to identify how much of their quota they've distributed to plans?

    Thanks for your help!
     
  4. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    We always use test VPS for plugin developments and never tried reseller account . May be open a ticket with provider and to cpanel if provider is not giving any help
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The WHM API 1 function you are attempting to use is only available to the "root" user. You may want to consider a VPS or dedicated server if you want to develop plugins. We do have developer licenses available:

    Developer License Application | cPanel, Inc.

    Thank you.
     
Loading...

Share This Page