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 item of watch history
  • api/watchhistory
  • Add item in watch history
  • api/addwatchhistory
  • Remove item from watch history
  • api/delete_watchhistory
  • All items removed from watch history
  • api/delete_watchhistory
  1. User Api

Watch History

Fire this api to show or remove from watchhistory.

Show all item of watch history

api/watchhistory

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

This endpoint allows you to show all movies and seasons in wishlist.

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

{
    "watch_history": [
        {
            "id": 11,
            "movie_id": 2,
            "tv_id": null,
            "user_id": 6,
            "created_at": "2021-10-28T10:19:08.000000Z",
            "updated_at": "2021-10-28T10:19:08.000000Z",
            "movies": {
                "id": 2,
                "tmdb_id": null,
                "title": "Cruella",
                "slug": "cruella",
                "keyword": "Comedy, Crime",
                "description": "In 1970s London amidst the punk rock revolution, a young grifter named Estella is determined to make a name for herself with her designs. She befriends a pair of young thieves who appreciate her appetite for mischief, and together they are able to build a life for themselves on the London streets. One day, Estella’s flair for fashion catches the eye of the Baroness von Hellman, a fashion legend who is devastatingly chic and terrifyingly haute. But their relationship sets in motion a course of events and revelations that will cause Estella to embrace her wicked side and become the raucous, fashionable and revenge-bent Cruella.",
                "duration": null,
                "thumbnail": "thumb_1627994571cruella.jpg",
                "poster": "thumb_1627994571cruella1.jpg",
                "tmdb": "N",
                "fetch_by": "title",
                "director_id": "1",
                "actor_id": "11,12,14,13",
                "genre_id": "3,5",
                "trailer_url": "https://www.youtube.com/watch?v=gmRKv7n2If8",
                "detail": "In 1970s London amidst the punk rock revolution, a young grifter named Estella is determined to make a name for herself with her designs. She befriends a pair of young thieves who appreciate her appetite for mischief, and together they are able to build a life for themselves on the London streets. One day, Estella’s flair for fashion catches the eye of the Baroness von Hellman, a fashion legend who is devastatingly chic and terrifyingly haute. But their relationship sets in motion a course of events and revelations that will cause Estella to embrace her wicked side and become the raucous, fashionable and revenge-bent Cruella.",
                "rating": null,
                "maturity_rating": "all age",
                "subtitle": 1,
                "publish_year": 2021,
                "released": "2021-05-28",
                "upload_video": null,
                "featured": 0,
                "series": 0,
                "a_language": "2",
                "audio_files": null,
                "type": "M",
                "live": 0,
                "livetvicon": null,
                "status": 1,
                "is_protect": 0,
                "password": null,
                "created_by": 1,
                "created_at": "2021-08-03T16:09:56.000000Z",
                "updated_at": "2021-08-17T14:06:31.000000Z",
                "is_upcoming": 0,
                "is_custom_label": 0,
                "label_id": null,
                "upcoming_date": null,
                "user-rating": 0
            },
            "tvseries": null
        }
    ]
}
{
    "message": "Unauthorized !"
}

//or

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

Add item in watch history

api/addwatchhistory

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

This endpoint allows you to add movie,tvseries in watchhistory.

Path Parameters

Name
Type
Description

type*

string

enter movie / tvseries type like M , T

id*

integer

ID of movie / tvseries

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"
}
{
    "message": "Invalid Secret Key !"
}

Remove item from watch history

api/delete_watchhistory

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

This endpoint allows you to remove movie / tvseries from watchhistory.

Path Parameters

Name
Type
Description

type*

string

enter type of M / T

id*

integer

ID of movie / tvseries

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"
}
{
    "message": "Invalid Secret Key !"
}

All items removed from watch history

api/delete_watchhistory

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

This endpoint allows you to remove all items from watchhistory.

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"
}
{
    "message": "Invalid Secret Key !"
}
PreviousWishlistNextUser Profile Update

Last updated 3 years ago