Raw_API_TV

Raw_API_TV

Source:

Raw API calls to the tmdb api end points for TV Shows.

Methods

(static) rawTVSearchByTitle(searchString, pageopt) → {object}

Source:

Returns data from search by searchString

Parameters:
Name Type Attributes Default Description
searchString string

String of title to search for

page number <optional>
1

page number to return if multiple pages from search

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object

(static) rawTVGetShowDetails(showId) → {object}

Source:

Returns show details for passed TMDb showId

Parameters:
Name Type Description
showId string

TMDb show id

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object

(static) rawTVGetEpisodes(showId, seasonNum) → {object}

Source:

Return episodes from showId passed and seasonNum passed

Parameters:
Name Type Default Description
showId string

TMDb show id

seasonNum number 1

season number to get episodes from

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object

(static) rawTVGetShowImages(showId) → {object}

Source:

Returns show images for passed showId from TMDb.

Parameters:
Name Type Description
showId string

TMDb show id

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object

(static) rawTVGetExternalIds(showId) → {object}

Source:

Returns external Ids from TMDb.

Parameters:
Name Type Description
showId string

TMDb show id

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object

(static) rawTVGetShowCredits(showId) → {object}

Source:

Returns Credits for a show from TMDb. Looks like it return the main cast and crew for a show.

Parameters:
Name Type Description
showId string

TMDb show id

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object

(static) rawTVGetCreditDetails(creditId) → {object}

Source:

Returns Credit Details from TMDb. Use rawTVGetShowCredits to get a creditId. Not sure of the usefullness of this one.

Parameters:
Name Type Description
creditId string

TMDb show id

Returns:

response object {data, msg} on success { data: data from api call, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
object