API РосТвиттер
  • Начнём
  • Авторизация
  • Вход через соцсети
  • Регистрация
  • Сброс пароля
  • Лента
  • Данные профиля (2)
  • Отчет профиля
  • Блокировка профиля
  • Токен уведомления
  • Смена пароля
  • Обновить токен доступа
  • Выход из системы
  • Верификация пользователя
  • Сообщение и ответ (4)
  • Опросы для голосования
  • Создать сторис (7)
  • Данные потока (2)
  • Нравится / Не нравится
  • Сообщение об отчете
  • Перепост
  • Закладки (2)
  • Лайки постов
  • Удаление поста
  • Поиск хештегов
  • Поиск людей
  • Поиск постов
  • Прикрепите пост к профилю
  • Обновить данные профиля
  • Аватар и обложка (3)
  • Конфиденциальность пользователя (2)
  • Подписка и отписка
  • Извлеките читающих
  • Извлеките читателей
  • Запросы на подписку (3)
  • Получать уведомления
  • Удаление уведомлений
  • Сообщения (6)
  • Удаление аккаунта
  • Смена языка
Fetch requests - 1 Approve - 2 Delete - 3

Fetch follow requests

Please use this (https://xn--b1agiwjedica.xn--p1ai/mobile_api/follow_requests) API for accessing endpoint of user (follow requests) list


Get parameters

Field Value Remarks
offset Last user offset ID This is only needed when loading users of the pagination system.
session_id ​Access token ID (Optional) E.g. de25cc16eb00960f076...
page_size ​Total users limit for each request Recommended: 20

Success response

{
        "code": 200,
        "message": "Follow requiests fetched successfully",
        "data": [
            {
                "offset_id": 43,
                "id": 18,
                "about": "",
                "posts": 1,
                "avatar": "http://colibri.loc/upload/avatars/xxx/xxx/rddNMSoS6S7cEgHO49Ch_20_45...b8_thumbnail_512x512.jpg",
                "last_active": "21 Jun, 21 02:06 PM",
                "username": "@john_smith",
                "fname": "John",
                "lname": "Smith",
                "email": "john_smith@gmail.com",
                "verified": "0",
                "name": "John Smith",
                "url": "http://colibri.loc/@john_smith",
                "pending_req": true
            },
            {...}
        ]
    }
    

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }

    {
        "code": 204,
        "message": "No data found",
        "data": []
    }
    

Approve follow requests

Please use this (https://xn--b1agiwjedica.xn--p1ai/mobile_api/accept_follow) API for accessing endpoint of user (follow requests) accepting


Post parameters

Field Value Remarks
session_id ​Access token ID (Optional) E.g. de25cc16eb00960f076...
req_id ​Follow request int ID E.g. 34

Success response

{
        "message": "Subscription request successfully accepted",
        "code": 200,
        "data": {
            "total": 0
        }
    }
    

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }

    {
        "code": 400,
        "message": "Follow request ID is missing or invalid",
        "data": []
    }
    

Delete follow requests

Please use this (https://xn--b1agiwjedica.xn--p1ai/mobile_api/ignore_follow) API for accessing endpoint of user (follow requests) deleting. I.e. Ignoring requests


Post parameters

Field Value Remarks
session_id ​Access token ID (Optional) E.g. de25cc16eb00960f076...
req_id ​Follow request int ID E.g. 34

Success response

{
        "message": "Subscription request successfully deleted",
        "code": 200,
        "data": {
            "total": 0
        }
    }
    

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }

    {
        "code": 400,
        "message": "Follow request ID is missing or invalid",
        "data": []
    }