Next Hour App
  • Introduction
    • Introduction
    • Key Features
    • Flutter
  • Installation
    • Flutter Installation
    • App Secret Key
  • project setup
    • App Deployment
      • Firebase
    • iOS Setup Instructions
    • Google Drive Key
    • OneSignal
    • Images
    • Reskinning
  • Publish your app
    • Requirements to Publish App
  • FAQ
    • Installation FAQ's
    • Access Denied
    • General Setting
    • Disclaimer
    • Regular & Extended Licenses
    • Privacy Policy
  • Troubleshoot
    • Troubleshoot
    • Changelogs
  • Source & credit
    • Source & Credit
  • Support
    • Support
  • conclution
    • Conclusion
  • our products
    • Next Hour Addons
    • Our Products
  • Api Document
    • Getting Started
  • Get secret key
  • Auth Api
    • Login
  • Home Page Api
  • Actor detail page
  • Payment Api
    • Payment Method List
    • Manual payment list
    • Subscribed with manual payment
    • Subscribed with free subscription
    • Subscription Stop and Resume
    • Invoice
  • Player Setting Api
    • Player Setting
    • Advertise
  • User Api
    • View User profile
    • Wishlist
    • Watch History
    • User Profile Update
    • Manage Profile
    • Notification
  • Coupon Api
  • Other Api
    • List of Contents
    • Menu
    • Slider
    • Package
    • List of all movies
    • List of all tvseries
    • List of all movies, tveries and top movie and tvseries
    • Recent Movies and Tvseries
    • List of menu by movies and tvseries
    • Language by movies and tvseries
Powered by GitBook
On this page
  • Show all notification
  • api/notifications
  • Read Notification
  • api/readnotification
  1. User Api

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"
        }
    ]
}
{
    "message": "Unauthorized !"
}

//or

{
    "message": "Secret Key is required"
}

//or

[
    "error"
]
{
    "message": "Invalid Secret Key !"
}

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"
]
{
    "message": "Unauthorized !"
}

//or

{
    "message": "Secret Key is required"
}

//or

[
    "error"
]
{
    "message": "Invalid Secret Key !"
}
PreviousManage ProfileNextCoupon Api

Last updated 3 years ago