KerioApiInterface.php 1.4 KB

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