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.

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:
    6
    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?
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    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
     
Loading...

Share This Page