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註冊表中獲取錯誤