Curated_API_Common

Curated_API_Common

Source:

Curated_API calls to the tmdb api end points that are COMMON to both TV and Movies.

These calls all reference their raw counterparts, but only return selected data points. Also, things like dates are converted to javascript date formats and image data are converted to URL strings.

Methods

(static) searchForPersonId(personName, pageopt) → {searchForPersonId_typedef}

Source:

Searches for person and returns results. Only returns the {id, name, popularity}, as it is expected to be used for searching for a person's id.

Parameters:
Name Type Attributes Default Description
personName string

Name of person to search for

page number <optional>
1

page number to return

Returns:

response object sorted by popularity desc on success { data: { page, totalpages, totalResults, results: [{ id, name, popularity }]}, apiCall: API call} on error { data: 'ERROR', msg: error message, }

Type
searchForPersonId_typedef

(static) getPersonDetails(personId) → {getPersonDetails_typedef}

Source:

Returns Person Details from TMDB. This is basic information about the person, no shows or movies that they starred in or worked on are included.

Parameters:
Name Type Description
personId number

personId to return info for

Returns:

response object sorted by popularity desc on success {

Type
getPersonDetails_typedef

(static) getPersonImages(personId) → {getPersonImages_typedef}

Source:

Returns Person Images from TMDB.

Parameters:
Name Type Description
personId number

personId to return info for

Returns:

Array of person images (https://...) on success {

Type
getPersonImages_typedef