Write own APi script

Discussion in 'Developers' Forum' started by Pida, May 21, 2012.

  1. Pida

    Pida New Member

    Hello all,

    I'm writing a module for ISPConfig, but I need to write own api scripts for this module.
    Is there any way how to write own api methods what are will upgrade safe in the future?

    One way is a write own methods to lib/classes/remote.inc.php, but it's not upgrade safe.

    Thank you for your reply...

    (sorry for my english)
     
  2. till

    till Super Moderator

    Create a new custom remote class that extends the class in remote.inc.php so that all fnctions from the original file will be available and you implement only the new functions in your class, then create a new remote api connector file by makeing a copy of the web/remote/index.php file that binds your own class to the soap handler.
     
  3. Pida

    Pida New Member

    Thank you till
     

Share This Page