tvdb

package module
v0.0.0-...-6f139b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 8 Imported by: 0

README

tvdb

TheTVDB API v3

https://api.thetvdb.com/swagger

How to use

    client := tvdb.NewClient("")
    _, err := client.Login(&tvdb.AuthenticationRequest{
        ApiKey:   os.Getenv("TVDB_API_KEY"),
        UserKey:  os.Getenv("TVDB_USER_KEY"),
        UserName: os.Getenv("TVDB_USER_NAME"),
    })
    
    if err != nil {
        return
    }

    data, err = client.SearchSeries(&tvdb.SearchSeriesRequest{
        Name: "<name_of_series>",
    })

More examples

Refer to example/example.go or any _test.go file to see how the client is used.

Documentation

Index

Constants

View Source
const ApplicationJson = "application/json"
View Source
const AuthenticationLogin string = "/login"
View Source
const AuthenticationRefreshToken string = "/refresh_token"
View Source
const BaseURL string = "https://api.thetvdb.com"
View Source
const DefaultLanguage = "en" // English
View Source
const EpisodesId string = "/episodes/%d"
View Source
const Languages string = "/languages"
View Source
const LanguagesId string = "/languages/%d"
View Source
const MovieUpdates string = "/movieupdates"
View Source
const Movies string = "/movies/%d"
View Source
const SearchSeries string = "/search/series"
View Source
const SearchSeriesParams string = "/search/series/params"
View Source
const Series string = "/series/%d"
View Source
const SeriesActors = Series + "/actors"
View Source
const SeriesEpisodes = Series + "/episodes"
View Source
const SeriesEpisodesQuery = SeriesEpisodes + "/query"
View Source
const SeriesEpisodesQueryParams = SeriesEpisodesQuery + "/params"
View Source
const SeriesEpisodesSummary = SeriesEpisodes + "/summary"
View Source
const SeriesFilter = Series + "/filter"
View Source
const SeriesFilterParams = SeriesFilter + "/params"
View Source
const SeriesImages = Series + "/images"
View Source
const SeriesImagesQuery = SeriesImages + "/query"
View Source
const SeriesImagesQueryParams = SeriesImagesQuery + "/params"
View Source
const UpdatedQuery string = "/updated/query"
View Source
const UpdatedQueryParams = UpdatedQuery + "/params"
View Source
const User string = "/user"
View Source
const UserFavorites = User + "/favorites"
View Source
const UserFavoritesId = UserFavorites + "/%d"
View Source
const UserRatings = User + "/ratings"
View Source
const UserRatingsDelete = UserRatings + "/%s/%d"
View Source
const UserRatingsPut = UserRatingsDelete + "/%d"
View Source
const UserRatingsQuery = UserRatings + "/query"
View Source
const UserRatingsQueryParams = UserRatingsQuery + "/params"

Variables

This section is empty.

Functions

This section is empty.

Types

type Actors

type Actors struct {
	ID              string `json:"id"`
	ImdbID          string `json:"imdb_id"`
	IsFeatured      bool   `json:"is_featured"`
	Name            string `json:"name"`
	PeopleFacebook  string `json:"people_facebook"`
	PeopleID        string `json:"people_id"`
	PeopleImage     string `json:"people_image"`
	PeopleInstagram string `json:"people_instagram"`
	PeopleTwitter   string `json:"people_twitter"`
	Role            string `json:"role"`
	RoleImage       string `json:"role_image"`
}

type Artworks

type Artworks struct {
	ArtworkType string `json:"artwork_type"`
	Height      int    `json:"height"`
	ID          string `json:"id"`
	IsPrimary   bool   `json:"is_primary"`
	Tags        string `json:"tags"`
	ThumbURL    string `json:"thumb_url"`
	URL         string `json:"url"`
	Width       int    `json:"width"`
}

type AuthenticationRequest

type AuthenticationRequest struct {
	ApiKey   string `json:"apikey"`
	UserKey  string `json:"userkey"`
	UserName string `json:"username"`
}

type AuthenticationResponse

type AuthenticationResponse struct {
	Token string `json:"token"`
}

Authentication struct store all data of a summary.

type Client

type Client struct {
	Client   *http.Client
	Language string
	Token    string
}

func NewClient

func NewClient(language string) (client *Client)

func (*Client) EpisodesId

func (c *Client) EpisodesId(episodeId int) (data *EpisodeResponse, err error)

func (*Client) Languages

func (c *Client) Languages() (data *LanguagesResponse, err error)

func (*Client) LanguagesId

func (c *Client) LanguagesId(languageId int) (data *LanguagesIdResponse, err error)

func (*Client) Login

func (c *Client) Login(requestParams *AuthenticationRequest) (data *AuthenticationResponse, err error)

func (*Client) Movie

func (c *Client) Movie(movieId int) (data *MoviesResponse, err error)

func (*Client) MovieUpdates

func (c *Client) MovieUpdates(startDateEpochTime string) (data *MovieUpdatesResponse, err error)

func (*Client) RefreshToken

func (c *Client) RefreshToken() (data *AuthenticationResponse, err error)

func (*Client) SearchSeries

func (c *Client) SearchSeries(params *SearchSeriesRequest) (data *SearchSeriesResponse, err error)

func (*Client) SearchSeriesParams

func (c *Client) SearchSeriesParams() (data *SearchSeriesParamsResponse, err error)

func (*Client) Series

func (c *Client) Series(seriesId int) (data *SeriesResponse, err error)

func (*Client) SeriesActor

func (c *Client) SeriesActor(seriesId int) (data *SeriesActorsResponse, err error)

func (*Client) SeriesEpisodes

func (c *Client) SeriesEpisodes(seriesId int, params *SeriesEpisodesRequest) (data *SeriesEpisodesResponse, err error)

func (*Client) SeriesEpisodesQuery

func (c *Client) SeriesEpisodesQuery(seriesId int, params *SeriesEpisodesQueryRequest) (data *SeriesEpisodesQueryResponse, err error)

func (*Client) SeriesEpisodesQueryParams

func (c *Client) SeriesEpisodesQueryParams(seriesId int) (data *SeriesEpisodesQueryParamsResponse, err error)

func (*Client) SeriesEpisodesSummary

func (c *Client) SeriesEpisodesSummary(seriesId int) (data *SeriesEpisodesSummaryResponse, err error)

func (*Client) SeriesFilter

func (c *Client) SeriesFilter(seriesId int, params *SeriesFilterRequest) (data *SeriesFilterResponse, err error)

func (*Client) SeriesFilterParams

func (c *Client) SeriesFilterParams(seriesId int) (data *SeriesFilterParamsResponse, err error)

func (*Client) SeriesImages

func (c *Client) SeriesImages(seriesId int) (data *SeriesImagesResponse, err error)

func (*Client) SeriesImagesQuery

func (c *Client) SeriesImagesQuery(seriesId int, params *SeriesImagesQueryRequest) (data *SeriesImagesQueryResponse, err error)

func (*Client) SeriesImagesQueryParams

func (c *Client) SeriesImagesQueryParams(seriesId int) (data *SeriesImagesQueryParamsResponse, err error)

func (*Client) UpdatedQuery

func (c *Client) UpdatedQuery(params *UpdatedQueryRequest) (data *UpdatedQueryResponse, err error)

func (*Client) UpdatedQueryParams

func (c *Client) UpdatedQueryParams() (data *UpdatedQueryParamsResponse, err error)

func (*Client) User

func (c *Client) User() (data *UserResponse, err error)

func (*Client) UserFavorites

func (c *Client) UserFavorites() (data *UserFavoritesResponse, err error)

func (*Client) UserFavoritesIdDelete

func (c *Client) UserFavoritesIdDelete(seriesId int) (data *UserFavoritesIdDeleteResponse, err error)

func (*Client) UserFavoritesIdPut

func (c *Client) UserFavoritesIdPut(seriesId int) (data *UserFavoritesIdPutResponse, err error)

func (*Client) UserRatings

func (c *Client) UserRatings() (data *UserRatingsResponse, err error)

func (*Client) UserRatingsDelete

func (c *Client) UserRatingsDelete(itemType string, itemId int) (data *UserRatingsDeleteResponse, err error)

func (*Client) UserRatingsPut

func (c *Client) UserRatingsPut(itemType string, itemId int, itemRating int) (data *UserRatingsPutResponse, err error)

func (*Client) UserRatingsQuery

func (c *Client) UserRatingsQuery(params *UserRatingsQueryRequest) (data *UserRatingsQueryResponse, err error)

as of 3/28/20 this is not working.

func (*Client) UserRatingsQueryParams

func (c *Client) UserRatingsQueryParams() (data *UserRatingsQueryParamsResponse, err error)

type Directors

type Directors struct {
	ID              string `json:"id"`
	ImdbID          string `json:"imdb_id"`
	IsFeatured      bool   `json:"is_featured"`
	Name            string `json:"name"`
	PeopleFacebook  string `json:"people_facebook"`
	PeopleID        string `json:"people_id"`
	PeopleImage     string `json:"people_image"`
	PeopleInstagram string `json:"people_instagram"`
	PeopleTwitter   string `json:"people_twitter"`
	Role            string `json:"role"`
	RoleImage       string `json:"role_image"`
}

type EpisodeData

type EpisodeData struct {
	AbsoluteNumber     int      `json:"absoluteNumber"`
	AiredEpisodeNumber int      `json:"airedEpisodeNumber"`
	AiredSeason        int      `json:"airedSeason"`
	AirsAfterSeason    int      `json:"airsAfterSeason"`
	AirsBeforeEpisode  int      `json:"airsBeforeEpisode"`
	AirsBeforeSeason   int      `json:"airsBeforeSeason"`
	Director           string   `json:"director"`
	Directors          []string `json:"directors"`
	DvdChapter         int      `json:"dvdChapter"`
	DvdDiscId          string   `json:"dvdDiscid"`
	DvdEpisodeNumber   float64  `json:"dvdEpisodeNumber"`
	DvdSeason          int      `json:"dvdSeason"`
	EpisodeName        string   `json:"episodeName"`
	Filename           string   `json:"filename"`
	FirstAired         string   `json:"firstAired"`
	GuestStars         []string `json:"guestStars"`
	Id                 int      `json:"id"`
	ImdbId             string   `json:"imdbId"`
	LastUpdated        int      `json:"lastUpdated"`
	LastUpdatedBy      int      `json:"lastUpdatedBy"`
	Overview           string   `json:"overview"`
	ProductionCode     string   `json:"productionCode"`
	SeriesId           int      `json:"seriesId"`
	ShowURL            string   `json:"showURL"`
	SiteRating         float32  `json:"siteRating"`
	SiteRatingCount    int      `json:"siteRatingCount"`
	ThumbAdded         string   `json:"thumbAdded"`
	ThumbAuthor        int      `json:"thumbAuthor"`
	ThumbHeight        string   `json:"thumbHeight"`
	ThumbWidth         string   `json:"thumbWidth"`
	Writers            []string `json:"writers"`
}

type EpisodeResponse

type EpisodeResponse struct {
	Data   EpisodeData `json:"data"`
	Errors Errors      `json:"errors,omitEmpty"`
}

type Errors

type Errors struct {
	InvalidFilters     []string `json:"invalidFilters"`
	InvalidLanguage    string   `json:"invalidLanguage"`
	InvalidQueryParams []string `json:"invalidQueryParams"`
}

type Genres

type Genres struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

type LanguagesData

type LanguagesData struct {
	Abbreviation string `json:"abbreviation"`
	EnglishName  string `json:"englishName"`
	Id           int    `json:"id"`
	Name         string `json:"name"`
}

type LanguagesIdResponse

type LanguagesIdResponse struct {
	Data LanguagesData `json:"data"`
}

type LanguagesResponse

type LanguagesResponse struct {
	Data []LanguagesData `json:"data"`
}
type Links struct {
	First    int `json:"first"`
	Last     int `json:"last"`
	Next     int `json:"next"`
	Previous int `json:"previous"`
}

type MovieUpdatesResponse

type MovieUpdatesResponse struct {
	Movies []int `json:"movies"`
}

type MoviesData

type MoviesData struct {
	Artworks     []Artworks     `json:"artworks"`
	Genres       []Genres       `json:"genres"`
	ID           int            `json:"id"`
	People       People         `json:"people"`
	ReleaseDates []ReleaseDates `json:"release_dates"`
	RemoteIds    []RemoteIds    `json:"remoteids"`
	Runtime      int            `json:"runtime"`
	Trailers     []Trailers     `json:"trailers"`
	Translations []Translations `json:"translations"`
	URL          string         `json:"url"`
}

type MoviesResponse

type MoviesResponse struct {
	Data MoviesData `json:"data"`
}

type People

type People struct {
	Actors    []Actors    `json:"actors"`
	Directors []Directors `json:"directors"`
	Producers []Producers `json:"producers"`
	Writers   []Writers   `json:"writers"`
}

type Producers

type Producers struct {
	ID              string `json:"id"`
	ImdbID          string `json:"imdb_id"`
	IsFeatured      bool   `json:"is_featured"`
	Name            string `json:"name"`
	PeopleFacebook  string `json:"people_facebook"`
	PeopleID        string `json:"people_id"`
	PeopleImage     string `json:"people_image"`
	PeopleInstagram string `json:"people_instagram"`
	PeopleTwitter   string `json:"people_twitter"`
	Role            string `json:"role"`
	RoleImage       string `json:"role_image"`
}

type ReleaseDates

type ReleaseDates struct {
	Country string `json:"country"`
	Date    string `json:"date"`
	Type    string `json:"type"`
}

type RemoteIds

type RemoteIds struct {
	ID         string `json:"id"`
	SourceID   int    `json:"source_id"`
	SourceName string `json:"source_name"`
	SourceURL  string `json:"source_url"`
	URL        string `json:"url"`
}

type RequestArgs

type RequestArgs struct {
	Body   interface{}
	Method string
	Params url.Values
	Path   string
}

type SearchSeriesData

type SearchSeriesData struct {
	Aliases    []string `json:"aliases"`
	Banner     string   `json:"banner"`
	FirstAired string   `json:"firstAired"`
	ID         int      `json:"id"`
	Image      string   `json:"image"`
	Network    string   `json:"network"`
	Overview   string   `json:"overview"`
	Poster     string   `json:"poster"`
	SeriesName string   `json:"seriesName"`
	Slug       string   `json:"slug"`
	Status     string   `json:"status"`
}

type SearchSeriesParamsData

type SearchSeriesParamsData struct {
	Params []string `json:"params"`
}

type SearchSeriesParamsResponse

type SearchSeriesParamsResponse struct {
	Data SearchSeriesParamsData `json:"data"`
}

not sure when this is needed as the documented api should also be updated?

type SearchSeriesRequest

type SearchSeriesRequest struct {
	Name     string `url:"name,omitempty"`     // Name of the series to search for.
	ImdbId   string `url:"imdbId,omitempty"`   // IMDB id of the series
	Zap2ItId string `url:"zap2itId,omitempty"` // Zap2it ID of the series to search for.
	Slug     string `url:"slug,omitempty"`     // Slug from site URL of series (https://www.thetvdb.com/series/$SLUG)
}

type SearchSeriesResponse

type SearchSeriesResponse struct {
	Data []SearchSeriesData `json:"data"`
}

type SeriesActorsData

type SeriesActorsData struct {
	ID          int    `json:"id"`
	Image       string `json:"image"`
	ImageAdded  string `json:"imageAdded"`
	ImageAuthor int    `json:"imageAuthor"`
	LastUpdated string `json:"lastUpdated"`
	Name        string `json:"name"`
	Role        string `json:"role"`
	SeriesID    int    `json:"seriesId"`
	SortOrder   int    `json:"sortOrder"`
}

type SeriesActorsResponse

type SeriesActorsResponse struct {
	Data   []SeriesActorsData `json:"data"`
	Errors Errors             `json:"errors,omitEmpty"`
}

type SeriesData

type SeriesData struct {
	Added           string   `json:"added"`
	AddedBy         int      `json:"addedBy"`
	AirsDayOfWeek   string   `json:"airsDayOfWeek"`
	AirsTime        string   `json:"airsTime"`
	Aliases         []string `json:"aliases"`
	Banner          string   `json:"banner"`
	FanArt          string   `json:"fanart"`
	FirstAired      string   `json:"firstAired"`
	Genre           []string `json:"genre"`
	ID              int      `json:"id"`
	ImdbID          string   `json:"imdbId"`
	LastUpdated     int      `json:"lastUpdated"`
	Language        string   `json:"language"`
	Network         string   `json:"network"`
	NetworkID       string   `json:"networkId"`
	Overview        string   `json:"overview"`
	Poster          string   `json:"poster"`
	Rating          string   `json:"rating"`
	Runtime         string   `json:"runtime"`
	Season          string   `json:"season"`
	SeriesID        string   `json:"seriesId"`
	SeriesName      string   `json:"seriesName"`
	SiteRating      float64  `json:"siteRating"`
	SiteRatingCount int      `json:"siteRatingCount"`
	Slug            string   `json:"slug"`
	Status          string   `json:"status"`
	Zap2ItID        string   `json:"zap2itId"`
}

type SeriesEpisodesData

type SeriesEpisodesData struct {
	AbsoluteNumber     int                    `json:"absoluteNumber"`
	AiredEpisodeNumber int                    `json:"airedEpisodeNumber"`
	AiredSeason        int                    `json:"airedSeason"`
	AiredSeasonId      int                    `json:"airedSeasonID"`
	AirsAfterSeason    int                    `json:"airsAfterSeason"`
	AirsBeforeEpisode  int                    `json:"airsBeforeEpisode"`
	AirsBeforeSeason   int                    `json:"airsBeforeSeason"`
	ContentRating      string                 `json:"contentRating"`
	Director           string                 `json:"director"`
	Directors          []string               `json:"directors"`
	DvdChapter         int                    `json:"dvdChapter"`
	DvdDiscid          string                 `json:"dvdDiscid"`
	DvdEpisodeNumber   int                    `json:"dvdEpisodeNumber"`
	DvdSeason          int                    `json:"dvdSeason"`
	EpisodeName        string                 `json:"episodeName"`
	Filename           string                 `json:"filename"`
	FirstAired         string                 `json:"firstAired"`
	GuestStars         []string               `json:"guestStars"`
	ID                 int                    `json:"id"`
	ImdbID             string                 `json:"imdbId"`
	IsMovie            int                    `json:"isMovie"`
	Language           SeriesEpisodesLanguage `json:"language"`
	LastUpdated        int                    `json:"lastUpdated"`
	LastUpdatedBy      int                    `json:"lastUpdatedBy"`
	Overview           string                 `json:"overview"`
	ProductionCode     string                 `json:"productionCode"`
	SeriesID           int                    `json:"seriesId"`
	ShowURL            string                 `json:"showUrl"`
	SiteRating         float64                `json:"siteRating"`
	SiteRatingCount    int                    `json:"siteRatingCount"`
	ThumbAdded         string                 `json:"thumbAdded"`
	ThumbAuthor        int                    `json:"thumbAuthor"`
	ThumbHeight        string                 `json:"thumbHeight"`
	ThumbWidth         string                 `json:"thumbWidth"`
	Writers            []string               `json:"writers"`
}

type SeriesEpisodesLanguage

type SeriesEpisodesLanguage struct {
	EpisodeName string `json:"episodeName"`
	Overview    string `json:"overview"`
}
type SeriesEpisodesLinks struct {
	First    int `json:"first"`
	Last     int `json:"last"`
	Next     int `json:"next"`
	Previous int `json:"previous"`
}

type SeriesEpisodesQueryParamsResponse

type SeriesEpisodesQueryParamsResponse struct {
	Data []string `json:"data"`
}

type SeriesEpisodesQueryRequest

type SeriesEpisodesQueryRequest struct {
	AbsoluteNumber string `url:"absoluteNumber,omitempty"` // Absolute number of the episode
	AiredSeason    string `url:"airedSeason,omitempty"`    // Aired season number
	AiredEpisode   string `url:"airedEpisode,omitempty"`   // Aired episode number
	DvdSeason      string `url:"dvdSeason,omitempty"`      // DVD season number
	DvdEpisode     string `url:"dvdEpisode,omitempty"`     // DVD episode number
	ImdbId         string `url:"imdbId,omitempty"`         // IMDB id of the series
	Page           string `url:"page,omitempty"`           // Page of results to fetch. Defaults to page 1 if not provided.
}

type SeriesEpisodesQueryResponse

type SeriesEpisodesQueryResponse = SeriesEpisodesResponse

type SeriesEpisodesRequest

type SeriesEpisodesRequest struct {
	Page string `url:"page,omitempty"` // Slug from site URL of series (https://www.thetvdb.com/series/$SLUG)
}

type SeriesEpisodesResponse

type SeriesEpisodesResponse struct {
	Data   []SeriesEpisodesData `json:"data"`
	Errors Errors               `json:"errors,omitEmpty"`
	Links  Links                `json:"links"`
}

type SeriesEpisodesSummaryResponse

type SeriesEpisodesSummaryResponse struct {
	Data SeriesEpisodesSummaryResponseData `json:"data"`
}

type SeriesEpisodesSummaryResponseData

type SeriesEpisodesSummaryResponseData struct {
	AiredEpisodes string   `json:"airedEpisodes"`
	AiredSeasons  []string `json:"airedSeasons"`
	DvdEpisodes   string   `json:"dvdEpisodes"`
	DvdSeasons    []string `json:"dvdSeasons"`
}

type SeriesFilterData

type SeriesFilterData struct {
	Added           string   `json:"added"`
	AddedBy         string   `json:"addedBy"`
	AirsDayOfWeek   string   `json:"airsDayOfWeek"`
	AirsTime        string   `json:"airsTime"`
	Aliases         []string `json:"aliases"`
	Banner          string   `json:"banner"`
	FanArt          string   `json:"fanart"`
	FirstAired      string   `json:"firstAired"`
	Genre           []string `json:"genre"`
	ID              int      `json:"id"`
	ImdbID          string   `json:"imdbId"`
	Language        string   `json:"language"`
	LastUpdated     int      `json:"lastUpdated"`
	Network         string   `json:"network"`
	NetworkID       string   `json:"networkId"`
	Overview        string   `json:"overview"`
	Poster          string   `json:"poster"`
	Rating          string   `json:"rating"`
	Runtime         string   `json:"runtime"`
	Season          string   `json:"season"`
	SeriesID        string   `json:"seriesId"`
	SeriesName      string   `json:"seriesName"`
	SiteRating      int      `json:"siteRating"`
	SiteRatingCount int      `json:"siteRatingCount"`
	Slug            string   `json:"slug"`
	Status          string   `json:"status"`
	Zap2ItID        string   `json:"zap2itId"`
}

type SeriesFilterParamsData

type SeriesFilterParamsData struct {
	Params []string `json:"params"`
}

type SeriesFilterParamsResponse

type SeriesFilterParamsResponse struct {
	Data SeriesFilterParamsData `json:"data"`
}

type SeriesFilterRequest

type SeriesFilterRequest struct {
	Keys string `url:"keys"` // Comma-separated list of keys to filter by (keys in `SeriesFilterData`)
}

type SeriesFilterResponse

type SeriesFilterResponse struct {
	Data   SeriesFilterData `json:"data"`
	Errors Errors           `json:"errors,omitEmpty"`
}

type SeriesImagesData

type SeriesImagesData struct {
	Fanart     int `json:"fanart"`
	Poster     int `json:"poster"`
	Season     int `json:"season"`
	SeasonWide int `json:"seasonwide"`
	Series     int `json:"series"`
}

type SeriesImagesQueryData

type SeriesImagesQueryData struct {
	FileName    string                       `json:"fileName"`
	ID          int                          `json:"id"`
	KeyType     string                       `json:"keyType"`
	Language    string                       `json:"language"`
	LanguageID  int                          `json:"languageId"`
	RatingsInfo SeriesImagesQueryRatingsInfo `json:"ratingsInfo"`
	Resolution  string                       `json:"resolution"`
	SubKey      string                       `json:"subKey"`
	Thumbnail   string                       `json:"thumbnail"`
}

type SeriesImagesQueryParamsData

type SeriesImagesQueryParamsData struct {
	KeyType    string   `json:"keyType"`
	Resolution []string `json:"resolution"`
	SubKey     []string `json:"subKey"`
}

type SeriesImagesQueryParamsResponse

type SeriesImagesQueryParamsResponse struct {
	Data []SeriesImagesQueryParamsData `json:"data"`
}

type SeriesImagesQueryRatingsInfo

type SeriesImagesQueryRatingsInfo struct {
	Average int `json:"average"`
	Count   int `json:"count"`
}

type SeriesImagesQueryRequest

type SeriesImagesQueryRequest struct {
	KeyType    string `url:"keyType,omitempty"`    // Type of image you're querying for (fanart, poster, etc. See ../images/query/params for more details).
	Resolution string `url:"resolution,omitempty"` // Resolution to filter by (1280x1024, for example)
	SubKey     string `url:"subKey,omitempty"`     // Subkey for the above query keys. See /series/{id}/images/query/params for more information
}

type SeriesImagesQueryResponse

type SeriesImagesQueryResponse struct {
	Data   []SeriesImagesQueryData `json:"data"`
	Errors Errors                  `json:"errors,omitEmpty"`
}

type SeriesImagesResponse

type SeriesImagesResponse struct {
	Data SeriesImagesData `json:"data"`
}

type SeriesResponse

type SeriesResponse struct {
	Data   SeriesData `json:"data"`
	Errors Errors     `json:"errors,omitEmpty"`
}

type Trailers

type Trailers struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type Translations

type Translations struct {
	IsPrimary    bool   `json:"is_primary"`
	LanguageCode string `json:"language_code"`
	Name         string `json:"name"`
	Overview     string `json:"overview"`
	Tagline      string `json:"tagline"`
}

type UpdatedQueryData

type UpdatedQueryData struct {
	ID          int `json:"id"`
	LastUpdated int `json:"lastUpdated"`
}

type UpdatedQueryParamsResponse

type UpdatedQueryParamsResponse struct {
	Data []string `json:"data"`
}

type UpdatedQueryRequest

type UpdatedQueryRequest struct {
	FromTime string `url:"fromTime"`         // Epoch time to start your date range.
	ToTime   string `url:"toTime,omitempty"` // Epoch time to end your date range. Must be one week from fromTime.
}

type UpdatedQueryResponse

type UpdatedQueryResponse struct {
	Data   []UpdatedQueryData `json:"data"`
	Errors Errors             `json:"errors,omitEmpty"`
}

type UserData

type UserData struct {
	FavoritesDisplayMode string `json:"favoritesDisplaymode"`
	Language             string `json:"language"`
	UserName             string `json:"userName"`
}

type UserFavoritesData

type UserFavoritesData struct {
	Favorites []int `json:"favorites"`
}

type UserFavoritesIdDeleteResponse

type UserFavoritesIdDeleteResponse = UserFavoritesResponse

type UserFavoritesIdPutResponse

type UserFavoritesIdPutResponse = UserFavoritesResponse

type UserFavoritesResponse

type UserFavoritesResponse struct {
	Data   UserFavoritesData `json:"data"`
	Errors Errors            `json:"errors,omitEmpty"`
}

type UserRatingsData

type UserRatingsData struct {
	Rating       int    `json:"rating"`
	RatingItemID int    `json:"ratingItemId"`
	RatingType   string `json:"ratingType"`
}

type UserRatingsDeleteResponse

type UserRatingsDeleteResponse = UserRatingsResponse

type UserRatingsPutResponse

type UserRatingsPutResponse = UserRatingsResponse

type UserRatingsQueryParamsResponse

type UserRatingsQueryParamsResponse struct {
	Data []string `json:"data"`
}

type UserRatingsQueryRequest

type UserRatingsQueryRequest struct {
	ItemType string `url:"itemType"`
}

type UserRatingsQueryResponse

type UserRatingsQueryResponse = UserRatingsResponse

type UserRatingsResponse

type UserRatingsResponse struct {
	Data   []UserRatingsData `json:"data,omitEmpty"`
	Errors Errors            `json:"errors,omitEmpty"`
	Links  Links             `json:"links,omitEmpty"`
}

type UserResponse

type UserResponse struct {
	Data UserData `json:"data"`
}

type Writers

type Writers struct {
	ID              string `json:"id"`
	ImdbID          string `json:"imdb_id"`
	IsFeatured      bool   `json:"is_featured"`
	Name            string `json:"name"`
	PeopleFacebook  string `json:"people_facebook"`
	PeopleID        string `json:"people_id"`
	PeopleImage     string `json:"people_image"`
	PeopleInstagram string `json:"people_instagram"`
	PeopleTwitter   string `json:"people_twitter"`
	Role            string `json:"role"`
	RoleImage       string `json:"role_image"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL