Documentation
¶
Index ¶
- Constants
- type Actors
- type Artworks
- type AuthenticationRequest
- type AuthenticationResponse
- type Client
- func (c *Client) EpisodesId(episodeId int) (data *EpisodeResponse, err error)
- func (c *Client) Languages() (data *LanguagesResponse, err error)
- func (c *Client) LanguagesId(languageId int) (data *LanguagesIdResponse, err error)
- func (c *Client) Login(requestParams *AuthenticationRequest) (data *AuthenticationResponse, err error)
- func (c *Client) Movie(movieId int) (data *MoviesResponse, err error)
- func (c *Client) MovieUpdates(startDateEpochTime string) (data *MovieUpdatesResponse, err error)
- func (c *Client) RefreshToken() (data *AuthenticationResponse, err error)
- func (c *Client) SearchSeries(params *SearchSeriesRequest) (data *SearchSeriesResponse, err error)
- func (c *Client) SearchSeriesParams() (data *SearchSeriesParamsResponse, err error)
- func (c *Client) Series(seriesId int) (data *SeriesResponse, err error)
- func (c *Client) SeriesActor(seriesId int) (data *SeriesActorsResponse, err error)
- func (c *Client) SeriesEpisodes(seriesId int, params *SeriesEpisodesRequest) (data *SeriesEpisodesResponse, err error)
- func (c *Client) SeriesEpisodesQuery(seriesId int, params *SeriesEpisodesQueryRequest) (data *SeriesEpisodesQueryResponse, err error)
- func (c *Client) SeriesEpisodesQueryParams(seriesId int) (data *SeriesEpisodesQueryParamsResponse, err error)
- func (c *Client) SeriesEpisodesSummary(seriesId int) (data *SeriesEpisodesSummaryResponse, err error)
- func (c *Client) SeriesFilter(seriesId int, params *SeriesFilterRequest) (data *SeriesFilterResponse, err error)
- func (c *Client) SeriesFilterParams(seriesId int) (data *SeriesFilterParamsResponse, err error)
- func (c *Client) SeriesImages(seriesId int) (data *SeriesImagesResponse, err error)
- func (c *Client) SeriesImagesQuery(seriesId int, params *SeriesImagesQueryRequest) (data *SeriesImagesQueryResponse, err error)
- func (c *Client) SeriesImagesQueryParams(seriesId int) (data *SeriesImagesQueryParamsResponse, err error)
- func (c *Client) UpdatedQuery(params *UpdatedQueryRequest) (data *UpdatedQueryResponse, err error)
- func (c *Client) UpdatedQueryParams() (data *UpdatedQueryParamsResponse, err error)
- func (c *Client) User() (data *UserResponse, err error)
- func (c *Client) UserFavorites() (data *UserFavoritesResponse, err error)
- func (c *Client) UserFavoritesIdDelete(seriesId int) (data *UserFavoritesIdDeleteResponse, err error)
- func (c *Client) UserFavoritesIdPut(seriesId int) (data *UserFavoritesIdPutResponse, err error)
- func (c *Client) UserRatings() (data *UserRatingsResponse, err error)
- func (c *Client) UserRatingsDelete(itemType string, itemId int) (data *UserRatingsDeleteResponse, err error)
- func (c *Client) UserRatingsPut(itemType string, itemId int, itemRating int) (data *UserRatingsPutResponse, err error)
- func (c *Client) UserRatingsQuery(params *UserRatingsQueryRequest) (data *UserRatingsQueryResponse, err error)
- func (c *Client) UserRatingsQueryParams() (data *UserRatingsQueryParamsResponse, err error)
- type Directors
- type EpisodeData
- type EpisodeResponse
- type Errors
- type Genres
- type LanguagesData
- type LanguagesIdResponse
- type LanguagesResponse
- type Links
- type MovieUpdatesResponse
- type MoviesData
- type MoviesResponse
- type People
- type Producers
- type ReleaseDates
- type RemoteIds
- type RequestArgs
- type SearchSeriesData
- type SearchSeriesParamsData
- type SearchSeriesParamsResponse
- type SearchSeriesRequest
- type SearchSeriesResponse
- type SeriesActorsData
- type SeriesActorsResponse
- type SeriesData
- type SeriesEpisodesData
- type SeriesEpisodesLanguage
- type SeriesEpisodesLinks
- type SeriesEpisodesQueryParamsResponse
- type SeriesEpisodesQueryRequest
- type SeriesEpisodesQueryResponse
- type SeriesEpisodesRequest
- type SeriesEpisodesResponse
- type SeriesEpisodesSummaryResponse
- type SeriesEpisodesSummaryResponseData
- type SeriesFilterData
- type SeriesFilterParamsData
- type SeriesFilterParamsResponse
- type SeriesFilterRequest
- type SeriesFilterResponse
- type SeriesImagesData
- type SeriesImagesQueryData
- type SeriesImagesQueryParamsData
- type SeriesImagesQueryParamsResponse
- type SeriesImagesQueryRatingsInfo
- type SeriesImagesQueryRequest
- type SeriesImagesQueryResponse
- type SeriesImagesResponse
- type SeriesResponse
- type Trailers
- type Translations
- type UpdatedQueryData
- type UpdatedQueryParamsResponse
- type UpdatedQueryRequest
- type UpdatedQueryResponse
- type UserData
- type UserFavoritesData
- type UserFavoritesIdDeleteResponse
- type UserFavoritesIdPutResponse
- type UserFavoritesResponse
- type UserRatingsData
- type UserRatingsDeleteResponse
- type UserRatingsPutResponse
- type UserRatingsQueryParamsResponse
- type UserRatingsQueryRequest
- type UserRatingsQueryResponse
- type UserRatingsResponse
- type UserResponse
- type Writers
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 AuthenticationRequest ¶
type AuthenticationResponse ¶
type AuthenticationResponse struct {
Token string `json:"token"`
}
Authentication struct store all data of a summary.
type 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) 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) 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 (*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 LanguagesData ¶
type LanguagesIdResponse ¶
type LanguagesIdResponse struct {
Data LanguagesData `json:"data"`
}
type LanguagesResponse ¶
type LanguagesResponse struct {
Data []LanguagesData `json:"data"`
}
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 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 RequestArgs ¶
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 SeriesEpisodesLinks ¶
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 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 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 SeriesImagesQueryParamsResponse ¶
type SeriesImagesQueryParamsResponse struct {
Data []SeriesImagesQueryParamsData `json:"data"`
}
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 Translations ¶
type UpdatedQueryData ¶
type UpdatedQueryParamsResponse ¶
type UpdatedQueryParamsResponse struct {
Data []string `json:"data"`
}
type UpdatedQueryRequest ¶
type UpdatedQueryResponse ¶
type UpdatedQueryResponse struct {
Data []UpdatedQueryData `json:"data"`
Errors Errors `json:"errors,omitEmpty"`
}
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 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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.