I am integrating Active Collab 5 API on my site. Using following code to post commetns on any task
try {
$pp = $client2->post('comments/task/51794', [
"body" => "this is test comment"
])->getJson();
echo "<pre>"; print_r($pp); echo "</pre>";
} catch(AppException $e) {
print $e->getMessage() . '<br><br>';
}
but I am facing an strange issue, instead of posting only one comment API is posting two duplicates comments means two same comments instead of one. Can any one share me what is the issue here.