log.blogcomment.add
The method adds comment to Activity Stream message.
Parameters
Parameter | Description | Version |
---|---|---|
$USER_ID | Comment author. Averrable only for administrator. Current user by default. | |
$POST_ID | Message ID | |
$TEXT | Comment text | |
$FILES | Files, array of values, described by rules, provided here. |
Example:
BX.rest.callMethod('log.blogcomment.add', { POST_ID: 10, TEXT: 'test comment' }).then();
// Gets a comment in Feed. Skipping ID inside the filter returns all available comments, allowed by access permissions let params = {}; let params = { FIRST_ID: 893, //b_sonet_log_comment LAST_ID: 894, }; BX.rest.callMethod( 'log.blogcomment.user.get', params, function(result) { if(result.error()) alert("Error: " + result.error()); else console.log(result.data()); } );
// Deletes a comment in Feed let params = { COMMENT_ID: 261, //b_blog_comment }; BX.rest.callMethod( 'log.blogcomment.delete', params, function(result) { if(result.error()) alert("Error: " + result.error()); else console.log(result.data()); } );
© «Bitrix24», 2001-2024