Did You Know?

JOOJ - Best software development company exercise agility to deliver web

User profile data

Author: admin 250 views

Please use this (https://talk.jooj.us/mobile_api/profile) API to access user profile data fetching endpoint

GET PARAMETERS

FieldValueRemarks
user_idProfile user IDIn order to get information about the profile, you must send a valid ID or username
usernameProfile usernameUnique username. E.g. “joojdemo”
session_idUser auth token (Optional)In this case, authorization is not required, but it is desirable to determine whether you are subscribed to this profile or not, blocked or not, etc.

SUCCESS RESPONSE

{
    "code": 200,
    "message": "Profile fetched successfully",
    "data":{
        "id": 79,
        "first_name": "rwefwe",
        "last_name": "werwer",
        "avatar": "https://talk.jooj.us/upload/avatars/2020/05/thumbnail_120x120.png",
        "cover": "https://talk.jooj.us/upload/covers/2020/11/image_cover.jpg",
        "user_name": "3324",
        "email": "dan_kassings@gmail.com",
        "is_verified": false,
        "website": "",
        "about_you": "",
        "gender": "M",
        "country": "United States",
        "post_count": 0,
        "about": "",
        "ip_address": "127.0.0.1",
        "following_count": 0,
        "follower_count": 0,
        "language": "english",
        "last_active": "1601390105",
        "profile_privacy": "everyone",
        "member_since": "Sep 2020",
        "is_blocked_visitor": false,
        "is_following": false,
        "can_view_profile": true
    }
}

ERROR RESPONSES

{
    "code": 400,
    "err_code": "invalid_request_data",
    "message": "User ID is missing or invalid",
    "data": []
}

{
    "code": 400,
    "err_code": "invalid_request_data",
    "message": "User ID is missing or invalid",
    "data": []
}

FETCH PROFILE POSTS

Please use this (https://talk.jooj.us/mobile_api/profile_posts) API to access user profile posts fetching endpoint

GET PARAMETERS

FieldValueRemarks
user_idProfile user IDIn order to get information about the profile, you must send a valid ID
typeProfile posts type (posts/media/liked)E.g. `posts` in order to get user publications
session_idUser auth token (Optional)In this case, authorization is not required, but it is desirable to determine whether you are subscribed to this profile or not, blocked or not, etc.
offsetLast post offset IDThis is only needed when loading posts of the pagination system.
page_size​Total post limit for each requestRecommended: 20

SUCCESS RESPONSE

{
    "code": 200,
    "message": "Posts fetched successfully",
    "data": {
        "posts": [
            {
                "id": 74,
                "user_id": 7,
                "text": "",
                "type": "image",
                "replys_count": "0",
                "reposts_count": "0",
                "likes_count": "1",
                "status": "active",
                "thread_id": 0,
                "target": "publication",
                "og_data": "",
                "time": "2 minutes ago",
                "offset_id": 82,
                "is_repost": false,
                "is_reposter": false,
                "attrs": "",
                "advertising": false,
                "time_raw": "1605809671",
                "og_text": "",
                "og_image": "http://colibri.loc/upload/images/2020/11/FqDafAGzJSkbNHtWlzMZ_19_3ae1e109ba500931d882d2f10e521a31_image_original.jpg",
                "url": "http://colibri.loc/thread/74",
                "can_delete": false,
                "media":[
                    {
                        "id": 52,
                        "pub_id": 74,
                        "type": "image",
                        "src": "upload/images/2020/11/FqDafAGzJSkbNHtWlzMZ_19_3ae1e109ba500931d882d2f10e521a31_image_original.jpg",
                        "json_data": "{\n    \"image_thumb\": \"upload\\/images\\/2020\\/11\\/HM9AjSxebhwUM1xETCWq_19_3ae1e109ba500931d882d2f10e521a31_image_300x300.jpg\"\n}",
                        "time": "1605809668",
                        "x":{"image_thumb": "upload/images/2020/11/HM9AjSxebhwUM1xETCWq_19_3ae1e109ba500931d882d2f10e521a31_image_300x300.jpg"}
                    }
                ],
                "is_owner": false,
                "has_liked": false,
                "has_saved": false,
                "has_reposted": false,
                "reply_to":[],
                "owner":{"id": 7, "url": "http://colibri.loc/@dan_kassing", "avatar": "http://colibri.loc/upload/default/avatar.png",…}
            },
            {"id": 73, "user_id": 7, "text": "", "type": "image",…},
            {"id": 72, "user_id": 7, "text": "how to get more twitter followers", "type": "text",…},
            {"id": 7, "user_id": 7, "cover": "http://colibri.loc/upload/covers/2020/09/Y34uzzA8rsQCmhGOC5Qo_18_8cebe1d4683c6defe9fdc69cd94744bc_image_cover.jpg",…}
        ]
    }
}

ERROR RESPONSES

{
    "code": 400,
    "err_code": "invalid_request_data",
    "message": "User ID is missing or invalid",
    "data": []
}

{
    "code": 400,
    "err_code": "invalid_request_data",
    "message": "User ID is missing or invalid",
    "data": []
}
On this page
Loading...