示例#1
0
文件: dlcomcat.php 项目: hay/hay
function request($cmcontinue = false)
{
    $args = array("format" => "json", "action" => "query", "list" => "categorymembers", "cmtitle" => "Category:Images_from_Wiki_Loves_Monuments", "cmlimit" => "500");
    if ($cmcontinue) {
        $args['cmcontinue'] = $cmcontinue;
    }
    $mw = new MwApiRequest($args);
    return $mw->getResponse();
}
示例#2
0
文件: dlcomcat2.php 项目: hay/hay
function request($title)
{
    $mw = new MwApiRequest(array("format" => "json", "action" => "query", "titles" => $title, "prop" => "imageinfo", "iiprop" => "url", "indexpageids" => "1"));
    return $mw->getResponse();
}