Documentation ¶
Index ¶
- func ChartBoxOffice(c *fiber.Ctx) error
- func ChartCommon(c *fiber.Ctx) error
- func ChartMovieMeter(c *fiber.Ctx) error
- func TitleCrazyCredits(c *fiber.Ctx) error
- func TitleIndex(c *fiber.Ctx) error
- func TitleKeywords(c *fiber.Ctx) error
- func TitlePhotos(c *fiber.Ctx) error
- func TitleTaglines(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChartBoxOffice ¶
func ChartBoxOffice(c *fiber.Ctx) error
ChartBoxOffice returns titles that are top of the box office chart @Summary Top Box Office (US) @Tags Chart @Success 200 {object} pipe.BoxOfficeTransform{} @Failure 500 {object} server.httpError @Router /chart/box-office [get]
func ChartCommon ¶
func ChartCommon(c *fiber.Ctx) error
ChartCommon returns list of titles based on the given chart type @Summary Scrape common chart types @Description This endpoint can scrape common chart types that have the same response structure. @Description @Description Specifying the chart type based on the table below is required. @Description | URL | Page Title | Page Description | @Description | --- | --- | --- | @Description | `https://imdb.com/chart/top` | IMDb Top 250 Movies | IMDb Top 250 as rated by regular IMDb voters. | @Description | `https://imdb.com/chart/toptv` | Top Rated TV Shows | Top 250 as rated by IMDb Users | @Description | `https://imdb.com/chart/top-english-movies` | Top Rated English Movies | Top 250 English-language movies as rated by IMDb Users | @Description | `https://imdb.com/chart/bottom` | Lowest Rated Movies | Bottom 100 as voted by IMDb Users | @Tags Chart @Param type query string true "Chart Type" Enums(top, toptv, top-english-movies, bottom) @Success 200 {object} pipe.ChartCommonTransform{} @Failure 500 {object} server.httpError @Router /chart/common [get]
func ChartMovieMeter ¶
func ChartMovieMeter(c *fiber.Ctx) error
ChartMovieMeter returns most popular movies as determined by IMDb Users @Summary Most Popular Movies @Tags Chart @Success 200 {object} pipe.ChartMovieMeterTransform{} @Failure 500 {object} server.httpError @Router /chart/moviemeter [get]
func TitleCrazyCredits ¶
func TitleCrazyCredits(c *fiber.Ctx) error
TitleCrazyCredits is a function that returns list of titles crazy credits @Summary Get titles crazy credits @Tags Title @Param id path string true "Title ID" @Success 200 {object} pipe.TitleCrazyCreditsTransform{} @Failure 404 {object} server.httpError @Failure 500 {object} server.httpError @Router /title/{id}/crazycredits [get]
func TitleIndex ¶
func TitleIndex(c *fiber.Ctx) error
TitleIndex is a function to get information about an IMDb title @Summary Get an IMDb title by ID @Description The ID should start with "tt" at the beginning. @Description | Title Text | IMDb ID | @Description | --- | --- | @Description | Spider-Man: No Way Home | `tt10872600` | @Description | Spider-Man: Far from Home | `tt6320628` | @Description | Spider-Man: Homecoming | `tt2250912` | @Description | Avengers: Endgame | `tt4154796` | @Description | Avengers: Infinity War | `tt4154756` | @Description | The Dark Knight | `tt0468569` | @Description | The Godfather | `tt0068646` | @Description | Friends | `tt0108778` | @Description | Breaking Bad | `tt0903747` | @Description | Chernobyl | `tt7366338` | @Tags Title @Param id path string true "Title ID" @Success 200 {object} pipe.IndexTransform{} @Failure 404 {object} server.httpError @Failure 500 {object} server.httpError @Router /title/{id} [get]
func TitleKeywords ¶
func TitleKeywords(c *fiber.Ctx) error
TitleKeywords is a function that returns list of titles keywords @Summary Get titles keywords @Tags Title @Param id path string true "Title ID" @Success 200 {object} pipe.TitleKeywordsTransform{} @Failure 404 {object} server.httpError @Failure 500 {object} server.httpError @Router /title/{id}/keywords [get]
func TitlePhotos ¶
func TitlePhotos(c *fiber.Ctx) error
TitlePhotos is a function that returns list of titles photos with pagination @Summary Titles photos @Tags Title @Param id path string true "Title ID" @Param page query string true "Page Number" Format(integer) Default(1) @Success 200 {object} pipe.TitlePhotosTransform{} @Failure 404 {object} server.httpError @Failure 500 {object} server.httpError @Router /title/{id}/photos [get]
func TitleTaglines ¶
func TitleTaglines(c *fiber.Ctx) error
TitleTaglines is a function that returns list of titles taglines @Summary Get titles taglines @Tags Title @Param id path string true "Title ID" @Success 200 {object} pipe.TitleTaglinesTransform{} @Failure 404 {object} server.httpError @Failure 500 {object} server.httpError @Router /title/{id}/taglines [get]
Types ¶
This section is empty.