Notification

Fire this api to show all notification.

Show all notification

api/notifications

GET https://yourdomain.com/api/notifications

This end point To get notification information

Query Parameters

Name
Type
Description

secret

string

Client secret key will goes here which you get from admin panel.

Headers

Name
Type
Description

Authorization*

string

Bearer { bearer_token without bracket }

Accept*

string

application/json

{
   "notifications": [
        {
            "id": "529f18ee-12d6-449a-b0f2-a071551ec43b",
            "type": "App\\Notifications\\MyNotification",
            "title": "Movie",
            "notifiable_type": "App\\User",
            "notifiable_id": 6,
            "data": {
                "title": "Movie",
                "data": "Upcoming Movie",
                "movie_id": "3",
                "tv_id": null,
                "notifiable_id": [
                    [
                        "6"
                    ]
                ]
            },
            "movie_id": 3,
            "tv_id": null,
            "read_at": null,
            "created_at": "2021-08-03T19:12:30.000000Z",
            "updated_at": "2021-08-03T19:12:30.000000Z"
        }
    ]
}

Read Notification

api/readnotification

GET https://yourdomain.com/api/readnotification

This end point will used to read the notification.

Path Parameters

Name
Type
Description

id*

string

ID of Notification

Query Parameters

Name
Type
Description

secret

string

Client secret key will goes here which you get from admin panel.

Headers

Name
Type
Description

Authorization*

string

Bearer { bearer_token without bracket }

Accept*

string

application/json

[
    "1"
]

Last updated