• Post category:Закладки
  • Запись изменена:28.10.2022

GET api/2.0/community/bookmark/top/year

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

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

Параметры
Этот метод не имеет параметров.

Пример

GET api/2.0/community/bookmark/top/year
Host: yourportal.r7-office.ru
Content-Type: application/json
Accept: application/json

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

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

application/json

{
  "status": 0,
  "response": [
    {
      "id": 11,
      "title": "Google inc.",
      "url": "http:\/\/www.google.com",
      "thumbnail": "Url to thumbnail",
      "created": "2022-10-03T19:03:27.4821749Z",
      "updated": "2022-10-03T19:03:27.4821749Z",
      "description": "Google",
      "createdBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      }
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>11</id>
    <title>Google inc.</title>
    <url>http://www.google.com</url>
    <thumbnail>Url to thumbnail</thumbnail>
    <created>2022-10-03T19:03:27.4821749Z</created>
    <updated>2022-10-03T19:03:27.4821749Z</updated>
    <description>Google</description>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
  </response>
</result>