Documentation
Add COMMENTS
usage
<CREATE>
<COMMENT module="{contact,group,media}" targetID="number">
<TYPE>string</TYPE>
<CHECKED>{0,1}</CHECKED>
[<CONTACT ID="number"/>]
<TITLE>string</TITLE>
<BODY>string</BODY>
</COMMENT>
</CREATE>
paramètres
module: the type of Nectil elements you want to comment.
targetID: the ID of the Nectil element you want to comment.
TYPE: the TYPE of comment. You're free to define your own comment's types.
CHECKED: a boolean indicating whether the comment was checked by an administrator or not.
CONTACT: allows to define who's the author of the comment. By default, if a user is connected to Nectil, the author will be himself.
TITLE: the title of the comment.
BODY: the text of the comment.
retourne
<MESSAGE elementID="number"/>
number is the ID of the comment
exemples
<CREATE>
<COMMENT module="media" targetID="256">
<TYPE>reaction</TYPE>
<CHECKED>0</CHECKED>
<CONTACT ID="1857"/>
<TITLE>I do not agree</TITLE>
<BODY>I wanted to react : this is absolutely erroneous ...</BODY>
</COMMENT>
</CREATE>