cm_soap_inbox.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.webservices
  5. */
  6. require_once __DIR__.'/cm_webservice_inbox.php';
  7. require_once __DIR__.'/cm_soap.php';
  8. /**
  9. * Configures the WSCourse SOAP service
  10. */
  11. $s = WSCMSoapServer::singleton();
  12. $s->register(
  13. 'WSCMInbox.unreadMessage',
  14. array(
  15. 'username' => 'xsd:string',
  16. 'password' => 'xsd:string',
  17. ),
  18. array('return' => 'xsd:string'),
  19. 'urn:WSCMService',
  20. '',
  21. '',
  22. '',
  23. 'Retorna a quantidade de mensagens nao lidas na caixa de entrada do usuario.'
  24. );
  25. $s->register(
  26. 'WSCMInbox.get_message_id',
  27. array(
  28. 'username' => 'xsd:string',
  29. 'password' => 'xsd:string',
  30. 'from' => 'xsd:string',
  31. 'number_of_items' => 'xsd:string',
  32. ),
  33. array('return' => 'xsd:string'),
  34. 'urn:WSCMService',
  35. '',
  36. '',
  37. '',
  38. 'Retorna o ID das mensagens de entrada entre o intervalo de from até number_of_items.'
  39. );
  40. $s->register(
  41. 'WSCMInbox.get_message_data',
  42. array(
  43. 'username' => 'xsd:string',
  44. 'password' => 'xsd:string',
  45. 'id' => 'xsd:string',
  46. 'field' => 'xsd:string',
  47. ),
  48. array('return' => 'xsd:string'),
  49. 'urn:WSCMService',
  50. '',
  51. '',
  52. '',
  53. 'Retorna o conteudo do campo informado em field da mensagem de entrada id. Os campos retornados sao: sender, title, date, status e content.'
  54. );
  55. $s->register(
  56. 'WSCMInbox.get_message_id_sent',
  57. array(
  58. 'username' => 'xsd:string',
  59. 'password' => 'xsd:string',
  60. 'from' => 'xsd:string',
  61. 'number_of_items' => 'xsd:string',
  62. ),
  63. array('return' => 'xsd:string'),
  64. 'urn:WSCMService',
  65. '',
  66. '',
  67. '',
  68. 'Retorna o ID das mensagens de saida entre o intervalo de from até number_of_items.'
  69. );
  70. $s->register(
  71. 'WSCMInbox.get_message_data_sent',
  72. array(
  73. 'username' => 'xsd:string',
  74. 'password' => 'xsd:string',
  75. 'id' => 'xsd:string',
  76. 'field' => 'xsd:string',
  77. ),
  78. array('return' => 'xsd:string'),
  79. 'urn:WSCMService',
  80. '',
  81. '',
  82. '',
  83. 'Retorna o conteudo do campo informado em field da mensagem de saida id. Os campos retornados sao: sender, title, date, status e content.'
  84. );
  85. $s->register(
  86. 'WSCMInbox.message_send',
  87. array(
  88. 'username' => 'xsd:string',
  89. 'password' => 'xsd:string',
  90. 'receiver_user_id' => 'xsd:string',
  91. 'subject' => 'xsd:string',
  92. 'content' => 'xsd:string',
  93. ),
  94. array('return' => 'xsd:string'),
  95. 'urn:WSCMService',
  96. '',
  97. '',
  98. '',
  99. 'Envia uma mensagem via rede social. Retorna o id da mensagem enviada.'
  100. );