Коммуникации · Чтение
Социальные сети · Публикации · Просмотр · Операция
social_posts_get_operation
Попробуйте три запроса
Получить данные
- Вы указываетеPostid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Социальные сети / Публикации / Просмотр / Операция» выполни чтение по выбранной записи (postId). Выведи кратко: статус, результат.
- status
- Статус
- result
- Результат
Задать параметры
- Вы указываетеPostid
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Социальные сети / Публикации / Просмотр / Операция» на учебном примере с postId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- postId
- DEMO-101
- archived
- true
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Социальные сети / Публикации / Просмотр / Операция» объясни статус, результат. Отметь отсутствующие значения.
- status
- Статус
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Recover the saved archive/restore result after a lost response using exactly the original arguments. Checks current read/update permissions and existing company post; does not repeat, unlock or change any operation.
Параметры запроса
- postId
- Canonical company social_content document ID from social_posts_list. A provider post ID or URL cannot replace this ID. обязательно по схеме · string · до символов 160
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- archived
- True sets the native isArchived flag; false restores it in SABSUS. This is not provider deletion or publication. обязательно по схеме · boolean
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- status
- An existing atomic receipt, or no receipt at this check. not_recorded does not prove failure or authorize another request ID. обязательно по схеме · string · варианты committed, not_recorded
- result
- Historical committed result, or null when no completed receipt exists. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"postId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical company social_content document ID from social_posts_list. A provider post ID or URL cannot replace this ID."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact current Firestore revision from social_posts_get. Any concurrent native change causes a conflict."
},
"archived": {
"type": "boolean",
"description": "True sets the native isArchived flag; false restores it in SABSUS. This is not provider deletion or publication."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for these exact arguments. After an uncertain response, check social_posts_get_operation with the original arguments."
}
},
"required": [
"postId",
"expectedRevision",
"archived",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"committed",
"not_recorded"
],
"description": "An existing atomic receipt, or no receipt at this check. not_recorded does not prove failure or authorize another request ID."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"postId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical company social_content document ID from social_posts_list. A provider post ID or URL cannot replace this ID."
},
"archived": {
"type": "boolean",
"description": "Native archive flag committed by the original operation. Read the post again to obtain its later current state."
}
},
"required": [
"postId",
"archived"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Historical committed result, or null when no completed receipt exists."
}
},
"required": [
"status",
"result"
],
"additionalProperties": false
}