获取PHP中bugzilla bug的列表

获取PHP中bugzilla bug的列表,php,feed,bugzilla,Php,Feed,Bugzilla,可以通过PHP从bugzilla安装中获取所有新bug的列表吗? 我可以看到有xmlrpc.cgi文件,但我找不到任何关于如何使用它的示例 谢谢你的帮助 谢谢 如何使用Zend_Http_客户端的示例。您也可以使用原始PHP来实现 我实际上发现我可以使用 /buglist.cgi?ctype=atom&bug_status=NEW 这就是你要找的吗 XMLRPC调用示例: <?php // Add the Zend Library, make sure this is insta

可以通过PHP从bugzilla安装中获取所有新bug的列表吗? 我可以看到有xmlrpc.cgi文件,但我找不到任何关于如何使用它的示例

谢谢你的帮助
谢谢

如何使用Zend_Http_客户端的示例。您也可以使用原始PHP来实现

我实际上发现我可以使用

/buglist.cgi?ctype=atom&bug_status=NEW

这就是你要找的吗

XMLRPC调用示例:

<?php
// Add the Zend Library, make sure this is installed: sudo apt-get install libzend-framework-php
ini_set("include_path", "/usr/share/php/libzend-framework-php");

// Add the AutoLoader, Calls any Library that's needed
require_once('Zend/Loader/Autoloader.php');
Zend_Loader_Autoloader::getInstance();

// New client that calls your Bugzilla XMLRPC server
$server = new Zend_XmlRpc_Client('http://bugzilla.yourdomain.com/xmlrpc.cgi');
$client = $server->getProxy(); 

// Create the Multi-Call array request
$request = array(
    array(
        'methodName' => 'system.listMethods', 
        'params'     => array() 
    )); 

/*
// Example: Multi call array format
$request = array(
    array(
        'methodName' => 'system.listMethods', 
        'params'     => array() 
    ),
    array(
        'methodName' => 'your_service.your_function', 
        'params'     => array('parm') 
    )); 

*/

// $response is an array() 
$response = $client->system->multicall($request); 

// Print the array
echo print_r($response,true);

?>