我收到此错误:
" {" errorMessages":["您无权查看指定的问题。","需要登录"], "错误":{}}" {" errorMessages":["您无权查看指定的问题。","需要登录"],"错误&#34 ;:{}}
当我试图从JIRA获取问题时。
对于提取问题,我在PHP中使用CURL。代码如下:
curl_setopt_array($curl, array(<br/>
CURLOPT_PORT => "8080",<br/>
CURLOPT_URL => "http://url/rest/api/latest/issue/issue id",<br/>
CURLOPT_RETURNTRANSFER => true,<br/>
CURLOPT_ENCODING => "",<br/>
CURLOPT_MAXREDIRS => 10,<br/>
CURLOPT_TIMEOUT => 30,<br/>
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,<br/>
CURLOPT_CUSTOMREQUEST => "GET",<br/>
CURLOPT_POSTFIELDS => "",<br/>
CURLOPT_HTTPHEADER => array('Accept: application/json',<br/>
'Content-Type: application/json','authorization: Bearer access_token'<br/>
),<br/>
));
访问令牌工作正常,因为我能够通过失眠获得响应。我该如何解决这个问题?