Source for file Jaiku.php
Documentation is available at
Jaiku.php
<?php
/**
*
* SWX Jaiku API by Aral Balkan.
*
* You can call this API using SWX, Amfphp, JSON and XML-RPC.
*
*
@author
Aral Balkan
*
@copyright
2007 Aral Balkan. All Rights Reserved.
*
@link
http://aralbalkan.com
*
@link
http://swxformat.org
*
@link
mailto://aral@aralbalkan.com
*
***/
// Require base service class
require_once
(
"../BaseService.php"
)
;
/**
* SWX Jaiku API by Aral Balkan. You can call this API using SWX, Amfphp, JSON and XML-RPC.
**/
class
Jaiku
extends
BaseService
{
function
Jaiku
(
)
{
// Nothing.
}
//
// Official Jaiku API methods: These implement the Jaiku API exactly
// See http://devku.org/docs for the full official documentation.
//
/**
* Returns the last stream entry (public).
*
* Authentication is not required.
*
*
@param
(str)
The user name to get the last public stream entry for.
*
*
@return
The
last stream entry.
*
@author
Aral Balkan
***/
function
lastStreamEntry
(
$userName
)
{
$url
=
$userName
.
'.jaiku.com/presence/last/json'
;
error_log
(
'Jaiku '
.
$url
)
;
$response
=
$this
->
_jsonCall
(
$url
,
NULL
,
'POST'
)
;
return
$response
;
}
}
?>
Documentation generated on Fri, 06 Jul 2007 19:54:51 +0100 by
phpDocumentor 1.3.1