• Post category:Форумы
  • Запись изменена:28.10.2022

GET api/2.0/community/forum/{threadid}

Для этой функции требуется аутентификация.

Описание
Возвращает список всех тем раздела с названиями тем, датами создания и обновления, текстами сообщений и авторами.

Параметры

Название Описание Тип Пример
threadid

sent in url
Идентификатор thread номер 1234
Пример
GET api/2.0/community/forum/1234
Host: yourportal.r7-office.ru
Content-Type: application/json
Accept: application/json

Возвращает
Список тем раздела

Пример ответа

application/json

{
  "status": 0,
  "response": {
    "id": 10,
    "title": "The Thread",
    "updatedBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "description": "Sample thread",
    "created": "2022-10-06T05:03:04.2470027Z",
    "updated": "2022-10-06T05:03:04.2470027Z",
    "recentTopicId": 1234,
    "recentTopicTitle": "Sample topic",
    "topics": [
      {
        "id": 10,
        "title": "Sample topic",
        "created": "2022-10-06T05:03:04.2470027Z",
        "updated": "2022-10-06T05:03:04.2470027Z",
        "text": "This is sample post",
        "updatedBy": {
          "id": "00000000-0000-0000-0000-000000000000",
          "displayName": "Mike Zanyatski",
          "title": "Manager",
          "avatarSmall": "url to small avatar",
          "profileUrl": ""
        },
        "threadTitile": null,
        "status": 2,
        "type": 0,
        "tags": [
          "Tag1",
          "Tag2"
        ]
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>10</id>
    <title>The Thread</title>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <description>Sample thread</description>
    <created>2022-10-06T05:03:04.2470027Z</created>
    <updated>2022-10-06T05:03:04.2470027Z</updated>
    <recentTopicId>1234</recentTopicId>
    <recentTopicTitle>Sample topic</recentTopicTitle>
    <topics>
      <id>10</id>
      <title>Sample topic</title>
      <created>2022-10-06T05:03:04.2470027Z</created>
      <updated>2022-10-06T05:03:04.2470027Z</updated>
      <text>This is sample post</text>
      <updatedBy>
        <id>00000000-0000-0000-0000-000000000000</id>
        <displayName>Mike Zanyatski</displayName>
        <title>Manager</title>
        <avatarSmall>url to small avatar</avatarSmall>
        <profileUrl></profileUrl>
      </updatedBy>
      <threadTitile />
      <status>2</status>
      <type>0</type>
      <tags>Tag1</tags>
      <tags>Tag2</tags>
    </topics>
  </response>
</result>