clarkwinkelmann Yep - here goes
<?php
$header = array(
"Authorization: Token <redacted>",
"Content-Type: application/json"
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://discuss.infosecforge.io/api/discussions');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 99999999);
curl_setopt($ch, CURLOPT_POSTFIELDS,
json_encode((array('data' => array(
'type' => "discussions",
'attributes' => array(
'title' => "Test Title",
'content' => "Test Content"))))));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$result = curl_exec($ch);
echo $result;
?>
User ID 99999999 is intentional BTW.