Notifications List

Brief description:

  • Fetch user notifications for likes, comments, photos, blogs, and videos via API – track engagement, filter by type, and manage alerts programmatically.

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
owner_guid Yes integer A notification owner GUID
types No string A type of notifications seperated by comma 'typedef', 'typeabc'
offset No integer If count > 10, you can set offset to 1, 2, 3.. for next 10 records default: 1
Example Response
{
    "merchant": "Open Source Social Network",
    "url": "http:\/\/www.mywebsite.com\/",
    "time_token": 1569331965,
    "payload": {
        "list": [
            {
                "notification": {
                    "guid": "4",
                    "type": "like:post",
                    "poster_guid": "27",
                    "owner_guid": "1",
                    "subject_guid": "110",
                    "viewed": null,
                    "time_created": "1569331959",
                    "item_guid": "110"
                },
                "poster": {
                    "guid": "27",
                    "fullname": "Meagan McLaughlin",
                    "icon": "http:\/\/www.mywebsite.com\/avatar\/zKutch\/small\/8715c874616ebf0391af044f974b554e.jpeg"
                },
                "entity": false,
                "post": false
            },
            {
                "notification": {
                    "guid": "3",
                    "type": "like:entity:file:profile:photo",
                    "poster_guid": "27",
                    "owner_guid": "1",
                    "subject_guid": "707",
                    "viewed": null,
                    "time_created": "1569331957",
                    "item_guid": "707"
                },
                "poster": {
                    "guid": "27",
                    "fullname": "Meagan McLaughlin",
                    "icon": "http:\/\/www.mywebsite.com\/avatar\/zKutch\/small\/8715c874616ebf0391af044f974b554e.jpeg"
                },
                "entity": false,
                "post": false
            }
        ],
        "count": "2",
        "offset": 1
    },
    "code": "100",
    "message": "Request successfully executed"
}

Return payload parameter description

Parameter name Explain
list if no notifications then it will be false
entity if it is releated to any entity other than profile and cover photo update
group if it is releated to the group member requests, it will contain group details
post If it is releated to post, this will contain a wall post details
count Total notifications
offset Current pagination number

Services View All