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!

Extending XML API response

Discussion in 'cPanel Developers' started by broncha, Apr 12, 2010.

  1. broncha

    broncha Active Member

    Joined:
    Feb 3, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Kathmandu,Nepal
    cPanel Access Level:
    Root Administrator
    Hi ,

    I was wondering if its possible to extend the xml result sent by an
    api call including datas returned from whm hook scripts??

    specifically in my case i want to be able to get data returned by
    prekillacct in the xml response .
    Is it possible?
    If yes how do I do that?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelDavidN

    cPanelDavidN Integration Developer

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi broncha,

    Short answer: no.

    Script hooks run in their own process and are unaware of the source call and therefore can not modify the response.

    You should be able to make a cgi script or WHM plugin that performs the needed action and returns the desired response text in an xml structured response.

    Regards,
    -Dave
     
    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