2
A
回答
2
其实我想通了,我可以用得到的原始XML ...
/buglist.cgi?ctype=atom&bug_status=NEW
4
示例如何使用Zend_Http_Client执行此操作。你也可以用原始的PHP来做到这一点。 http://petehowe.co.uk/2010/02/23/example-of-calling-the-bugzilla-api-using-php-zend-framework/
2
这是你在找什么,XMLRPC Bugzilla
示例XML-RPC调用:
<?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);
?>
相关问题
- 1. 升级Bugzilla获取错误表已存在
- 2. bugzilla 500错误
- 3. 使用php soapclient的Bugzilla webservices - 错误 - 错误的版本
- 4. Extension.pm中的Bugzilla-VCS安装错误
- 5. Tasks.ASP.NET.SimpleOAuth2获取任务列表错误
- 6. 从org.eclipse.jface.text.Document获取错误列表
- 7. FQL获取好友列表错误
- 8. 获取“参数列表太长”错误
- 9. 使用Bugzilla Restful Api在Bugzilla中创建错误
- 10. Lighttpd PHP获取错误500?
- 11. 获取错误MismatchSenderId gcm php
- 12. .htaccess php获取错误
- 13. 获取Django表单中的错误列表
- 14. 获取SimpleXMLElement中的儿童列表PHP
- 15. 在php中获取解析错误
- 16. PHP文件中获取内容错误
- 17. 贝宝在php中获取错误
- 18. 从APNS-php错误中获取令牌
- 19. 获取错误在PHP中回显javascript
- 20. 从angulars下拉列表中获取选择值读取错误
- 21. Oracle中的截断表获取错误
- 22. PHP语法错误列表()
- 23. Perl的Bugzilla的安装错误模块
- 24. php file_get_contents将错误的内容类型发送到Bugzilla安装
- 25. 获取链接到TFS中工作项的错误列表
- 26. 如何修复从列表中获取值的错误
- 27. 从列表中获取时间戳的Python错误
- 28. PHP AJAX POST获取错误的数据
- 29. 获取有关php $ _session的此错误
- 30. 始终从PHP注册表中获取错误