# Source for file Jaiku.php

Documentation is available at Jaiku.php

1. <?php
2. /**
3. *
4. * SWX Jaiku API by Aral Balkan.
5. *
6. * You can call this API using SWX, Amfphp, JSON and XML-RPC.
7. *
8. * @author Aral Balkan
9. * @copyright 2007 Aral Balkan. All Rights Reserved.
10. * @link http://aralbalkan.com
11. * @link http://swxformat.org
12. * @link mailto://aral@aralbalkan.com
13. *
14. ***/
16. // Require base service class
17. require_once("../BaseService.php");
19. /**
20. * SWX Jaiku API by Aral Balkan. You can call this API using SWX, Amfphp, JSON and XML-RPC.
21. **/
23. class Jaiku extends BaseService
24. {
25. function Jaiku()
26. {
27. // Nothing.
28. }
30. //
31. // Official Jaiku API methods: These implement the Jaiku API exactly
32. // See http://devku.org/docs for the full official documentation.
33. //
36. /**
37. * Returns the last stream entry (public).
38. *
39. * Authentication is not required.
40. *
41. * @param (str) The user name to get the last public stream entry for.
42. *
43. * @return The last stream entry.
44. * @author Aral Balkan
45. ***/
46. function lastStreamEntry($userName)
47. {
48. $url = $userName.'.jaiku.com/presence/last/json';
50. error_log('Jaiku '.$url);
52. $response = $this->_jsonCall($url, NULL, 'POST');
54. return $response;
55. }
57. }
58. ?>

Documentation generated on Fri, 06 Jul 2007 19:54:51 +0100 by phpDocumentor 1.3.1