使用jira rest api

时间:2015-05-27 07:58:27

标签: php jira-rest-api

我正在开发一个自定义PHP应用程序,我需要使用Jira REST API从Jira打印项目列表。我使用以下代码:

$response = @file_get_contents("https://example.atlassian.net/jira/rest/api/latest/project?expand");
if($response === false)
{
    echo "Error";
}
print_r($response);

但它显示错误,因为响应是错误的。我在网上搜索过但没有得到任何合适的答案。

我以下列方式使用了登录名和密码:

$response = @file_get_contents("https://example.atlassian.net/jira/rest/api/latest/project?expand&os_username=$user&os_password=$pass");

但它仍然会出错。

0 个答案:

没有答案
相关问题