API docs     >     General     >     Comments

Comments->add

Description

add ( $objectId = '', $commentText = 0, $parentCommentId = '', $userName = '', $userEmail )
Adds a Comment to the Object

Parameters

$objectId
int
Object Id
$commentText
string
Text of the comment
$parentCommentId
int
(optional) Id of the parent Comment
$userName
string
(optional) Name to be used when user in Anonymous usergroup
$userEmail
string
(optional) Email to be used when user in Anonymous usergroup

Returns

int
ERROR_NONE on success or other error code