Results 1 to 2 of 2

Thread: Extending XML API response

  1. #1
    Member broncha's Avatar
    Join Date
    Feb 2009
    Location
    Kathmandu,Nepal
    Posts
    32
    cPanel/WHM Access Level

    Root Administrator

    Default Extending XML API response

    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?
    ========================================
    http://www.rajesharma.com
    http://www.twitter.com/broncha

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default

    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
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

Similar Threads

  1. XML API 2 help
    By Dragonxito in forum cPanel Developers
    Replies: 1
    Last Post: 05-13-2011, 04:23 PM
  2. Xml api creatacc problem - server response break
    By jerome.chevreau in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 04-05-2011, 02:10 AM
  3. XML-API DNS (killdns response error)
    By paulipv in forum cPanel Developers
    Replies: 2
    Last Post: 07-13-2009, 06:20 PM
  4. XML API: always get login screen, not XML
    By sldff3ald in forum cPanel Developers
    Replies: 3
    Last Post: 09-19-2007, 09:29 AM
  5. How do I use the xml - api?
    By rhopperger in forum cPanel Developers
    Replies: 3
    Last Post: 05-19-2007, 08:07 AM