ex":
$type = "archivelist";
break;
}
return _setSkinPart($blogid, $username, $password, $content, $type);
}
// blogger.getUserInfo
$f_blogger_getUserInfo_sig = array(array(
// return type
$xmlrpcStruct, // Struct
// params
$xmlrpcString, // appkey (ignored)
$xmlrpcString, // username
$xmlrpcString, // password
));
$f_blogger_getUserInfo_doc = "Returns info on the user";
function f_blogger_getUserInfo($m) {
$username = _getScalar($m,1);
$password = _getScalar($m,2);
return _getUserInfo($username, $password);
}
/**
* Returns a list of recent items
*/
function _getRecentItemsBlogger($blogid, $username, $password, $amount) {
$blogid = intval($blogid);
$amount = intval($amount);
// 1. login
$mem = new MEMBER();
if (!$mem->login($username, $password))
return _error(1,"Could not log in");
// 2. check if allowed
if (!BLOG::existsID($blogid))
return _error(2,"No such blog ($blogid)");
if (!$mem->teamRights($blogid))
return _error(3,"Not a team member");
$amount = intval($amount);
if (($amount < 1) or ($amount > 20))
return _error(5,"Amount parameter must be in range 1..20");
// 3. create and return list of recent items
// Struct
上一篇:
api.php
下一篇:
问卷调查可以自动生成试卷等,并且只能一个用户登录