Documentation

log.blogpost.get

Returns an array with Activity Stream messages, accessible to the current user. Each of the messages is an array of field values (including user fields).

Function parameters

Parameter Description
POST_ID Numerical ID for the message to be filtered (optional).
LOG_RIGHTSFiltering by recipient. Filter values can be both a string (specific access permission value) and an array.
Access permissions to view a message (optional), by default - array("UA") - for all authorized users.
The following values can be used:
  • SG<X> - workgroup with ID=X;
  • U<X> - user with ID=X;
  • DR<X> - department with ID=X, including subdepartments;
  • UA - all authorized users.
  • G - user group (for example, G2).

The response passes the DATE_PUBLISH field value in the ISO 8601 format.

Example

BX24.callMethod('log.blogpost.get', { POST_ID: 755 });

Request:

https://my.bitrix24.com/rest/log.blogpost.get.xml?auth=xxxxxxx

Response:

{"result":[{"ID":"4","BLOG_ID":"1","PUBLISH_STATUS":"P","TITLE":"sdfsdfsd","AUTHOR_ID":"1","ENABLE_COMMENTS":"Y","NUM_COMMENTS":"0","VIEWS":null,"CODE":null,"MICRO":"Y","DETAIL_TEXT":"sdfsdfsd","DATE_PUBLISH":"21.10.2015 17:00:50","CATEGORY_ID":"","HAS_SOCNET_ALL":"Y","HAS_TAGS":"N","HAS_IMAGES":"N","HAS_PROPS":"N","HAS_COMMENT_IMAGES":null},{"ID":"3","BLOG_ID":"1","PUBLISH_STATUS":"P","TITLE":"test1","AUTHOR_ID":"1","ENABLE_COMMENTS":"Y","NUM_COMMENTS":"0","VIEWS":null,"CODE":null,"MICRO":"Y","DETAIL_TEXT":"test1","DATE_PUBLISH":"31.07.2015 17:03:54","CATEGORY_ID":"","HAS_SOCNET_ALL":"Y","HAS_TAGS":"N","HAS_IMAGES":"N","HAS_PROPS":"Y","HAS_COMMENT_IMAGES":null,"UF_BLOG_POST_DOC":{"ID":"1","ENTITY_ID":"BLOG_POST","FIELD_NAME":"UF_BLOG_POST_DOC","USER_TYPE_ID":"file","XML_ID":"UF_BLOG_POST_DOC","SORT":"100","MULTIPLE":"Y","MANDATORY":"N","SHOW_FILTER":"N","SHOW_IN_LIST":"N","EDIT_IN_LIST":"Y","IS_SEARCHABLE":"Y","SETTINGS":{"SIZE":20,"LIST_WIDTH":0,"LIST_HEIGHT":0,"MAX_SHOW_SIZE":0,"MAX_ALLOWED_SIZE":0,"EXTENSIONS":[]},"EDIT_FORM_LABEL":null,"LIST_COLUMN_LABEL":null,"LIST_FILTER_LABEL":null,"ERROR_MESSAGE":null,"HELP_MESSAGE":null,"USER_TYPE":{"USER_TYPE_ID":"file","CLASS_NAME":"CUserTypeFile","DESCRIPTION":"\u0424\u0430\u0439\u043b","BASE_TYPE":"file"},"VALUE":false,"ENTITY_VALUE_ID":3},"UF_GRATITUDE":{"ID":"3","ENTITY_ID":"BLOG_POST","FIELD_NAME":"UF_GRATITUDE","USER_TYPE_ID":"integer","XML_ID":"UF_GRATITUDE","SORT":"100","MULTIPLE":"N","MANDATORY":"N","SHOW_FILTER":"N","SHOW_IN_LIST":"N","EDIT_IN_LIST":"Y","IS_SEARCHABLE":"N","SETTINGS":{"SIZE":20,"MIN_VALUE":0,"MAX_VALUE":0,"DEFAULT_VALUE":""},"EDIT_FORM_LABEL":null,"LIST_COLUMN_LABEL":null,"LIST_FILTER_LABEL":null,"ERROR_MESSAGE":null,"HELP_MESSAGE":null,"USER_TYPE":{"USER_TYPE_ID":"integer","CLASS_NAME":"CUserTypeInteger","DESCRIPTION":"\u0426\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","BASE_TYPE":"int"},"VALUE":null,"ENTITY_VALUE_ID":3},"UF_BLOG_POST_FILE":{"ID":"8","ENTITY_ID":"BLOG_POST","FIELD_NAME":"UF_BLOG_POST_FILE","USER_TYPE_ID":"disk_file","XML_ID":"UF_BLOG_POST_FILE","SORT":"100","MULTIPLE":"Y","MANDATORY":"N","SHOW_FILTER":"N","SHOW_IN_LIST":"N","EDIT_IN_LIST":"Y","IS_SEARCHABLE":"Y","SETTINGS":{"IBLOCK_ID":0,"SECTION_ID":0,"UF_TO_SAVE_ALLOW_EDIT":null},"EDIT_FORM_LABEL":null,"LIST_COLUMN_LABEL":null,"LIST_FILTER_LABEL":null,"ERROR_MESSAGE":null,"HELP_MESSAGE":null,"USER_TYPE":{"USER_TYPE_ID":"disk_file","CLASS_NAME":"Bitrix\\Disk\\Uf\\FileUserType","DESCRIPTION":"\u0424\u0430\u0439\u043b (\u0414\u0438\u0441\u043a)","BASE_TYPE":"int","TAG":["DISK FILE ID","DOCUMENT ID"]},"VALUE":false,"ENTITY_VALUE_ID":3},"UF_BLOG_POST_IMPRTNT":{"ID":"18","ENTITY_ID":"BLOG_POST","FIELD_NAME":"UF_BLOG_POST_IMPRTNT","USER_TYPE_ID":"integer","XML_ID":"UF_BLOG_POST_IMPRTNT","SORT":"100","MULTIPLE":"N","MANDATORY":"N","SHOW_FILTER":"N","SHOW_IN_LIST":"Y","EDIT_IN_LIST":"Y","IS_SEARCHABLE":"N","SETTINGS":{"SIZE":20,"MIN_VALUE":0,"MAX_VALUE":0,"DEFAULT_VALUE":""},"EDIT_FORM_LABEL":"\u0412\u0430\u0436\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435","LIST_COLUMN_LABEL":"\u0412\u0430\u0436\u043d\u043e\u0435","LIST_FILTER_LABEL":"\u0412\u0430\u0436\u043d\u043e\u0435","ERROR_MESSAGE":null,"HELP_MESSAGE":null,"USER_TYPE":{"USER_TYPE_ID":"integer","CLASS_NAME":"CUserTypeInteger","DESCRIPTION":"\u0426\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","BASE_TYPE":"int"},"VALUE":"1","ENTITY_VALUE_ID":3},"UF_BLOG_POST_VOTE":{"ID":"35","ENTITY_ID":"BLOG_POST","FIELD_NAME":"UF_BLOG_POST_VOTE","USER_TYPE_ID":"vote","XML_ID":"UF_BLOG_POST_VOTE","SORT":"100","MULTIPLE":"N","MANDATORY":"N","SHOW_FILTER":"N","SHOW_IN_LIST":"Y","EDIT_IN_LIST":"Y","IS_SEARCHABLE":"N","SETTINGS":{"CHANNEL_ID":1,"UNIQUE":13,"UNIQUE_IP_DELAY":{"DELAY":"10","DELAY_TYPE":"D"},"NOTIFY":"I"},"EDIT_FORM_LABEL":null,"LIST_COLUMN_LABEL":null,"LIST_FILTER_LABEL":null,"ERROR_MESSAGE":null,"HELP_MESSAGE":null,"USER_TYPE":{"USER_TYPE_ID":"vote","CLASS_NAME":"CUserTypeVote","DESCRIPTION":"\u041e\u043f\u0440\u043e\u0441","BASE_TYPE":"int"},"VALUE":null,"ENTITY_VALUE_ID":3}},{"ID":"2","BLOG_ID":"1","PUBLISH_STATUS":"P","TITLE":"test","AUTHOR_ID":"1","ENABLE_COMMENTS":"Y","NUM_COMMENTS":"0","VIEWS":null,"CODE":null,"MICRO":"Y","DETAIL_TEXT":"test","DATE_PUBLISH":"31.07.2015 17:03:35","CATEGORY_ID":"","HAS_SOCNET_ALL":"Y","HAS_TAGS":"N","HAS_IMAGES":"N","HAS_PROPS":"N","HAS_COMMENT_IMAGES":null},{"ID":"1","BLOG_ID":"1","PUBLISH_STATUS":"P","TITLE":"\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0440\u0442\u0430\u043b \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438","AUTHOR_ID":"1","ENABLE_COMMENTS":"Y","NUM_COMMENTS":"1","VIEWS":"5","CODE":null,"MICRO":"N","DETAIL_TEXT":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0440\u0442\u0430\u043b \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.\n\n\","DATE_PUBLISH":"16.07.2015 13:12:35","CATEGORY_ID":"1,2","HAS_SOCNET_ALL":"Y","HAS_TAGS":"Y","HAS_IMAGES":"N","HAS_PROPS":"N","HAS_COMMENT_IMAGES":"N"}],"total":4}



User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix24», 2001-2021