- API
- Метаданные ленты
- Сервис для взаимодействия с каналами
- Getting started [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type -
Getting started with the
Category data type - Dynamic event type calculation
- Typical use cases
- API
Сервис для взаимодействия с каналами
Hierarchy
Methods
commentList
Получить список комментариев.
Parameters
channelId: string
messageId: string
Optional options: FeedListOptions<FeedCommentFilter>
Returns Promise<FeedMessageComment[]>
Список комментариев.
const channelId = '55467104-fe1e-4b20-9233-412a10bf3a10'; const messageId = '55467104-fe1e-4b20-9233-412a10bf3a10'; const users = await System.users.search().size(2).all(); const options: FeedListOptions = { from: 5, size: 20, filter: { authors: users, } }; const comments = await System.feed.channel.commentList(channelId, messageId, options);createComment
Создать комментарий.
Parameters
channelId: string
messageId: string
body: string
Optional options: FeedPostOptions
Returns Promise<string>
Уникальный идентификатор комментария.
const channelId = '55467104-fe1e-4b20-9233-412a10bf3a10'; const messageId = '55467104-fe1e-4b20-9233-412a10bf4a11'; const commentBody = 'Тело комментария'; const users = await System.users.search().size(2).all(); const blob = new Blob(['file_text_content']); const buf = await blob.arrayBuffer(); const file = await System.files.createTemporary('file.txt', buf); const options: FeedPostOptions = { mentions: users, tempFiles: [file], }; const commentId = await System.feed.channel.createComment(channelId, messageId, commentBody, options);createMessage
Создать сообщение.
Parameters
channelId: string
title: string | null
body: string
Optional options: FeedPostOptions
Returns Promise<string>
Уникальный идентификатор сообщения.
const channelId = '55467104-fe1e-4b20-9233-412a10bf3a10'; const messageTitle = 'Заголовок'; const messageBody = 'Тело сообщения'; const users = await System.users.search().size(2).all(); const blob = new Blob(['file_text_content']); const buf = await blob.arrayBuffer(); const file = await System.files.createTemporary('file.txt', buf); const options: FeedPostOptions = { mentions: users, tempFiles: [file], }; const messageId = await System.feed.channel.createMessage(channelId, messageTitle, messageBody, options);list
Получить список каналов.
Parameters
Optional options: FeedListOptions<FeedChannelFilter>
Returns Promise<FeedChannel[]>
Список каналов.
const users = await System.users.search().size(2).all(); const options: FeedListOptions = { from: 1, size: 2, filter: { name: 'HR', } }; const channels = await System.feed.channel.list(options);messageList
Получить список сообщений.
Parameters
channelId: string
Optional options: FeedListOptions<FeedMessageFilter>
Returns Promise<FeedMessage[]>
Список сообщений.
const channelId = '55467104-fe1e-4b20-9233-412a10bf3a10'; const users = await System.users.search().size(2).all(); const options: FeedListOptions = { from: 5, size: 20, filter: { hasComments: true, authors: users, } }; const messages = await System.feed.channel.messageList(channelId, options);Methods
Feedback sent successfully
Thank you for your input