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

Change user avatar

Please use this (https://xn--b1agiwjedica.xn--p1ai/mobile_api/avatar) API for accessing user avatar uploading endpoint


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
avatar Image format file (jpg,png,jpeg,gif) image.jpeg

Success response

{
        "code": 200,
        "message": "Avatar changed successfully",
        "data": {
            "avatar_url": "http://dev.colibri.loc/upload/avatars/2021/02/hVB4NV4....a967a7_thumbnail_512x512.jpg"
        }
    }
    

Error responses

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

    {
        "code": 400,
        "data": [],
        "message": "Avatar image is missing or invalid"
    }
    

Change user profile cover

Please use this (https://xn--b1agiwjedica.xn--p1ai/mobile_api/cover) API for accessing user profile cover uploading endpoint


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
cover Image format file (jpg,png,jpeg,gif) image.jpeg

Success response

{
        "code": 200,
        "message": "Profile cover changed successfully",
        "data":{
            "cover_url": "http://dev.colibri.loc/upload/covers/2021/02/4wWZCl...fd23a4_image_cover_600x200.jpg"
        }
    }
    

Error responses

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

    {
        "code": 400,
        "data": [],
        "message": "Cover image is missing or invalid"
    }
    

Change user profile cover position

Please use this (https://xn--b1agiwjedica.xn--p1ai/mobile_api/cover_reposition) API for accessing the endpoint of changing the position of the user's profile cover

This access point allows you to change the position of the profile cover up or down. The margins are combed from top to bottom in pixels, given the standard cover size of 600 by 200 pixels.


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
cover_position Integer top position offset number E.g. 10

Success response

{
        "code": 200,
        "message": "Your changes have been successfully saved",
        "data":{
            "cover_url": "http://dev.colibri.loc/upload/covers/2021/02/bp3lj5....ccd9c7_image_cover.jpg"
        }
    }
    

Error responses

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

    {
        "code": 400,
        "data": [],
        "message": "Cover position offset number is missing or invalid"
    }