简体   繁体   English

使用php解析JIRA REST API响应

[英]parse JIRA REST API response using php

I tried several times and several methods to parse long json data in JIRA REST API response. 我尝试了几种方法来解析JIRA REST API响应中的长json数据。 but I couldn't 但是我做不到

I want to parse Json using PHP. 我想使用PHP解析Json。 So I used pure php and curl also but i couldn't. 所以我也用纯PHP和curl但是我做不到。 Please help me to solve this. 请帮我解决这个问题。 I'm new in REST API and php-curl 我是REST API和php-curl的新手

Here is my JIRA REST Response https://jira.atlassian.com/rest/api/latest/issue/JRA-9 这是我的JIRA REST响应https://jira.atlassian.com/rest/api/latest/issue/JRA-9

Here is my sample php-curl code 这是我的示例php-curl代码

<?php 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://jira.atlassian.com/rest/api/latest/issue/JRA-9");
    curl_exec($ch);
    curl_close($ch);
?>

finally. 最后。 I solve that.I have to enable CuRL extension first on local server(WAMP or XAMPP) that is my issue 我解决了这个问题,我必须先在本地服务器(WAMP或XAMPP)上启用CuRL扩展

php扩展

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM