KerioApiInterface.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * This file is part of the kerio-api-php.
  4. *
  5. * Copyright (c) Kerio Technologies s.r.o.
  6. *
  7. * For the full copyright and license information, please view
  8. * the file license.txt that was distributed with this source code
  9. * or visit Developer Zone. (http://www.kerio.com/developers)
  10. *
  11. * Do not modify this source code.
  12. * Any changes may be overwritten by a new version.
  13. */
  14. /**
  15. * Kerio API Interface.
  16. *
  17. * This interface describes basic methods for Kerio API.
  18. *
  19. * @copyright Copyright &copy; 2012-2012 Kerio Technologies s.r.o.
  20. * @license http://www.kerio.com/developers/license/sdk-agreement
  21. * @version 1.4.0.234
  22. */
  23. interface KerioApiInterface {
  24. /**
  25. * Class constructor.
  26. *
  27. * @param string
  28. * @param string
  29. * @param string
  30. */
  31. public function __construct($name, $vendor, $version);
  32. /**
  33. * Set JSON-RPC settings.
  34. *
  35. * @param string
  36. * @param integer
  37. * @param string
  38. */
  39. public function setJsonRpc($version, $port, $api);
  40. /**
  41. * Send request using method and its params.
  42. *
  43. * @param string
  44. * @param array
  45. */
  46. public function sendRequest($method, $params = '');
  47. /**
  48. * Login method.
  49. *
  50. * @param string
  51. * @param string
  52. * @param string
  53. */
  54. public function login($hostname, $username, $password);
  55. /**
  56. * Logout method.
  57. *
  58. * @param void
  59. */
  60. public function logout();
  61. }