Added json_encode
This commit is contained in:
parent
cfeb196289
commit
f566d039ab
@ -39,12 +39,14 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Prepare the request
|
// Prepare the request
|
||||||
$issueData = array(
|
$rawData = array(
|
||||||
'body' => $detail,
|
'body' => $detail,
|
||||||
'title' => $subject,
|
'title' => $subject,
|
||||||
'closed' => 'false'
|
'closed' => 'false'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$issueData = json_encode($rawData);
|
||||||
|
|
||||||
// Prepare CURL
|
// Prepare CURL
|
||||||
$curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues');
|
$curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues');
|
||||||
curl_setopt($curlConnection, CURLOPT_POSTFIELDS, $issueData);
|
curl_setopt($curlConnection, CURLOPT_POSTFIELDS, $issueData);
|
||||||
|
Reference in New Issue
Block a user