Wall post add

Brief description:

  • Add a wall post for user.

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
owner_guid Yes integer User ID or Group ID in case of group
poster_guid Yes integer User ID, user who is posting
post No string Text
friends No string Friends IDs seperated by comma , for tagging in post
location No string Location
privacy No integer 3 for Friends only, 2 for public. Default : 2 Public
type Yes string user or group , if you creating post for group (in lowercase)
ossn_photo Optional File A photo for wall post, will be accessed example via $_FILES['ossn_photo]

Example Response

{
    "merchant": "Open Source Social Network",
    "url": "http:\/\/www.mywebsite.com\/",
    "time_token": 1569253135,
    "payload": {
        "post": {
            "data": {},
            "guid": "113",
            "time_created": "1569253135",
            "owner_guid": "1",
            "description": "{\"post\":\"Hello How are you\"}",
            "title": "",
            "type": "user",
            "subtype": "wall",
            "poster_guid": "1",
            "access": "3",
            "time_updated": "0",
            "total_likes": 0,
            "is_liked_by_user": false
        },
        "friends": [],
        "text": "Hello How are you",
        "location": "",
        "user": {
            "guid": "1",
            "first_name": "System",
            "last_name": "Administrator",
            "fullname": "System Administrator",
            "username": "administrator",
            "email": "[email protected]",
            "birthdate": "03\/02\/1988",
            "gender": "male",
            ...
            ...
        },
        "image": ""
    },
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Type Explain
image string Image file name
post.total_likes integer Number of likes post have, always false for new post
post.is_liked_by_user boolean Will always false for new post

Remark

Services View All