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
        }
    ]
}

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"
]

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"
]

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"
]

Last updated