Twittner Twittner API
Overview
Introduction
Authentication
Login POST Signup POST Social Login POST Reset Password POST Refresh Token POST Verify Account POST Logout POST
User Profile
Profile Data POST Update Profile POST Avatar & Cover POST Privacy Settings POST Change Password POST Change Language POST Delete Account POST
Content
Post & Reply POST Timeline Feed POST Thread Data POST Pin Post POST Delete Post POST Swifts POST
Social
Follow & Unfollow POST Fetch Followers POST Fetch Following POST Follow Requests POST
Engagement
Like & Unlike POST Vote on Polls POST Bookmarks POST Repost POST Report Post POST
Search
Search Hashtags POST Search People POST Search Posts POST
Messaging
Messages POST
Notifications
Get Notifications POST Delete Notifications POST Push Token POST
Moderation
Block User POST Report Profile POST
Back to Twittner
API / User Profile / Avatar & Cover
Upload avatar - 1 Upload cover - 2 Move cover - 3

Change user avatar

Please use this (https://twittner.com/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": "https://twittner.com/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://twittner.com/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": "https://twittner.com/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://twittner.com/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": "https://twittner.com/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"
    }