我设置了Jira,现在想从更改有关我自己的个人资料的一些详细信息开始。现在,我有代码来获取带有个人资料信息的JSON,我可以以某种方式将其发送回并更改信息吗?
$username = 'test';
$password = 'test123';
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL,'http://localhost:8080/rest/api/2/user?username=test');
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
curl_setopt($curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$query = curl_exec($curl_handle);
$wantedString = json_decode($query);
print_r($wantedString->name);
$wantedString->name = 'test1';
print_r($wantedString);
对于任何想知道我使用Jira Rest API的人
答案 0 :(得分:0)