User Profile wall posts list

Brief description:

  • List wall posts for user profile page.

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
uguid Yes integer This is the userid you wanted to get wall posts for.
guid Yes integer User who is viewing the profile (Specify even uguid and guid are same)
offset Yes integer The page number, if count > 10 , then you can use offset to next 10 posts, like if there are 30 posts, you can use 1, 2, 3 number, each response contain 10 posts
count Yes integer The total number of posts

Example Response

{
    "merchant": "Open Source Social Network",
    "url": "http:\/\/www.mywebsite.com\/",
    "time_token": 1569254816,
    "payload": {
        "posts": [
            {
                "post": {
                    "data": {},
                    "guid": "110",
                    "time_created": "1569189230",
                    "owner_guid": "1",
                    "description": "{\"post\":\"OK\"}",
                    "title": "",
                    "type": "user",
                    "subtype": "wall",
                    "poster_guid": "1",
                    "access": "2",
                    "time_updated": "0",
                    "total_likes": 1,
                    "is_liked_by_user": true
                },
                "friends": [],
                "text": "OK",
                "location": "",
                "user": {
                    "guid": "1",
                    "first_name": "System",
                    ...
                    ...
                },
                "image": ""
            },
            {
                "post": {
                    "data": {},
                    "guid": "109",
                    "time_created": "1569186720",
                    "owner_guid": "1",
                    "description": "{\"post\":\"some text\"}",
                    "title": "",
                    "type": "user",
                    "subtype": "wall",
                    "poster_guid": "1",
                    "access": "2",
                    "time_updated": "0",
                    "total_likes": 1,
                    "is_liked_by_user": true
                },
                "friends": [],
                "text": "some text",
                "location": "",
                "user": {
                    "guid": "1",
                    "first_name": "System",
                    ...
                    ...
                },
                "image": ""
            }
        ],
        "count": "4",
        "viewer_is_friend": false,
        "user": {
            "guid": "1",
            "first_name": "System",
            "last_name": "Administrator",
             ..
             ..
        },
        "offset": 1
    },
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Type Explain
friend array will contain the users friends if he tagged them
text string Text will contain null:data if it is a custom wall post, like porifle photo update, cover , album photos etc
posted_user object If wall post owner_guid and poster_guid is not same then it will contain the user object who created the post
post.is_liked_by_user boolean true if it is liked by viewer used guid
post.is_liked_by_user integer Numer of total likes

Remark

  • If the request succeed you should get the code 100 besides the payload.
  • If you have any question you may create start a new topic on community.

Services View All