Documentation ¶
Overview ¶
Package shikimori
Authentication ¶
OAuth2 is used for authentication. OAuth2 guide.
Restrictions ¶
API access is limited by `5rps` and `90rpm`.
Requirements ¶
Add your Oauth2 Application name to [API.UserAgent] requests header. Don’t mimic a browser. Your IP address may be banned if you use API without properly set [API.UserAgent] header.
Pagination in API ¶
When you request N elements from paginated API, you will get N+1 results if API has next page.
Index ¶
- type API
- func (s *API) Achievements(ctx context.Context, params *AchievementsParams) (resp []Achievement, err error)
- func (s *API) Anime(ctx context.Context, id int, params *AnimeParams) (resp AnimeFull, err error)
- func (s *API) AnimeExternalLinks(ctx context.Context, id int, params *AnimeExternalLinksParams) (resp []ExternalLink, err error)
- func (s *API) AnimeFranchise(ctx context.Context, id int, params *AnimeFranchiseParams) (resp Franchise, err error)
- func (s *API) AnimeRelated(ctx context.Context, id int, params *AnimeRelatedParams) (resp []AnimeRelated, err error)
- func (s *API) AnimeRoles(ctx context.Context, id int, params *AnimeRolesParams) (resp []AnimeRole, err error)
- func (s *API) AnimeScreenshots(ctx context.Context, id int, params *AnimeScreenshotsParams) (resp []Screenshot, err error)
- func (s *API) AnimeSimilar(ctx context.Context, id int, params *AnimeSimilarParams) (resp []Anime, err error)
- func (s *API) AnimeTopics(ctx context.Context, id int, params *AnimeTopicsParams) (resp []Topic, err error)
- func (s *API) Animes(ctx context.Context, params *AnimesParams) (resp []Anime, err error)
- func (s *API) Bans(ctx context.Context, params *BansParams) (resp []Ban, err error)
- func (s *API) Calendar(ctx context.Context, params *CalendarParams) (resp []CalendarItem, err error)
- func (s *API) Character(ctx context.Context, id int, params *CharacterParams) (resp Character, err error)
- func (s *API) ConstantsAnime(ctx context.Context, params *ConstantsAnimeParams) (resp ConstantsAnime, err error)
- func (s *API) ConstantsClub(ctx context.Context, params *ConstantsClubParams) (resp ConstantsClub, err error)
- func (s *API) ConstantsManga(ctx context.Context, params *ConstantsMangaParams) (resp ConstantsManga, err error)
- func (s *API) ConstantsSmileys(ctx context.Context, params *ConstantsSmileysParams) (resp []ConstantsSmiley, err error)
- func (s *API) ConstantsUserRate(ctx context.Context, params *ConstantsUserRateParams) (resp ConstantsUserRate, err error)
- func (s *API) Forums(ctx context.Context, params *ForumsParams) (resp []Forum, err error)
- func (s *API) Genres(ctx context.Context, params *GenresParams) (resp []Genre, err error)
- func (s *API) Manga(ctx context.Context, id int, params *MangaParams) (resp MangaFull, err error)
- func (s *API) MangaExternalLinks(ctx context.Context, id int, params *MangaExternalLinksParams) (resp []ExternalLink, err error)
- func (s *API) MangaFranchise(ctx context.Context, id int, params *MangaFranchiseParams) (resp Franchise, err error)
- func (s *API) MangaRelated(ctx context.Context, id int, params *MangaRelatedParams) (resp []MangaRelated, err error)
- func (s *API) MangaRoles(ctx context.Context, id int, params *MangaRolesParams) (resp []MangaRole, err error)
- func (s *API) MangaSimilar(ctx context.Context, id int, params *MangaSimilarParams) (resp []Manga, err error)
- func (s *API) MangaTopics(ctx context.Context, id int, params *MangaTopicsParams) (resp []Topic, err error)
- func (s *API) People(ctx context.Context, id int, params *PeopleParams) (resp Person, err error)
- func (s *API) Publishers(ctx context.Context, params *PublishersParams) (resp []Publisher, err error)
- func (s *API) Ranobe(ctx context.Context, id int, params *RanobeParams) (resp RanobeFull, err error)
- func (s *API) RanobeExternalLinks(ctx context.Context, id int, params *RanobeExternalLinksParams) (resp []ExternalLink, err error)
- func (s *API) RanobeFranchise(ctx context.Context, id int, params *RanobeFranchiseParams) (resp Franchise, err error)
- func (s *API) RanobeRelated(ctx context.Context, id int, params *RanobeRelatedParams) (resp []RanobeRelated, err error)
- func (s *API) RanobeRoles(ctx context.Context, id int, params *RanobeRolesParams) (resp []RanobeRole, err error)
- func (s *API) RanobeSimilar(ctx context.Context, id int, params *RanobeSimilarParams) (resp []Ranobe, err error)
- func (s *API) RanobeTopics(ctx context.Context, id int, params *RanobeTopicsParams) (resp []Topic, err error)
- func (s *API) StatsActiveUsers(ctx context.Context, params *StatsActiveUsersParams) (resp []int, err error)
- func (s *API) Studios(ctx context.Context, params *StudiosParams) (resp []Studio, err error)
- func (s *API) TopicsHot(ctx context.Context, params *TopicsHotParams) (resp []Topic, err error)
- func (s *API) TopicsUpdates(ctx context.Context, params *TopicsUpdatesParams) (resp []TopicsUpdate, err error)
- func (s *API) UserRate(ctx context.Context, id int, params *UserRateParams) (resp UserRate, err error)
- func (s *API) UserRates(ctx context.Context, params *UserRatesParams) (resp []UserRate, err error)
- func (s *API) UsersAnimeRates(ctx context.Context, id int, params *UsersAnimeRateParams) (resp []UsersAnimeRate, err error)
- func (s *API) Video(ctx context.Context, id int, params *VideoParams) (resp []Video, err error)
- type Achievement
- type AchievementsParams
- type Anime
- type AnimeDuration
- type AnimeExternalLinksParams
- type AnimeFranchiseParams
- type AnimeFull
- type AnimeImage
- type AnimeKind
- type AnimeMyList
- type AnimeOrder
- type AnimeParams
- type AnimeRating
- type AnimeRelated
- type AnimeRelatedParams
- type AnimeRole
- type AnimeRolesParams
- type AnimeScreenshotsParams
- type AnimeSimilarParams
- type AnimeStatus
- type AnimeTopicsParams
- type AnimesParams
- type Ban
- type BansParams
- type CalendarItem
- type CalendarParams
- type Character
- type CharacterAnime
- type CharacterBase
- type CharacterParams
- type ClubCommentPolicy
- type ClubImageUploadPolicy
- type ClubJoinPolicy
- type Comment
- type ConstantsAnime
- type ConstantsAnimeParams
- type ConstantsClub
- type ConstantsClubParams
- type ConstantsManga
- type ConstantsMangaParams
- type ConstantsSmiley
- type ConstantsSmileysParams
- type ConstantsUserRate
- type ConstantsUserRateParams
- type ExternalLink
- type Forum
- type ForumsParams
- type Franchise
- type FranchiseLink
- type FranchiseNode
- type Genre
- type GenresParams
- type Image
- type Manga
- type MangaExternalLinksParams
- type MangaFranchiseParams
- type MangaFull
- type MangaKind
- type MangaParams
- type MangaRelated
- type MangaRelatedParams
- type MangaRole
- type MangaRolesParams
- type MangaSimilarParams
- type MangaStatus
- type MangaTopicsParams
- type NotFoundError
- type PeopleParams
- type Person
- type PersonBase
- type PersonCharacter
- type PersonDate
- type PersonRole
- type PersonWork
- type Publisher
- type PublishersParams
- type Ranobe
- type RanobeExternalLinksParams
- type RanobeFranchiseParams
- type RanobeFull
- type RanobeParams
- type RanobeRelated
- type RanobeRelatedParams
- type RanobeRole
- type RanobeRolesParams
- type RanobeSimilarParams
- type RanobeTopicsParams
- type RatesScoresStat
- type RatesStatusesStat
- type RoleStat
- type Screenshot
- type StatsActiveUsersParams
- type Studio
- type StudiosParams
- type TooManyRequestsError
- type Topic
- type TopicLinked
- type TopicsHotParams
- type TopicsUpdate
- type TopicsUpdatesParams
- type UnknownError
- type UnprocessableEntityErrors
- type User
- type UserImage
- type UserRate
- type UserRateParams
- type UserRateStatus
- type UserRateTargetType
- type UserRatesParams
- type UsersAnimeRate
- type UsersAnimeRateParams
- type Video
- type VideoParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Client *http.Client BaseURL string UserAgent string AccessToken string // contains filtered or unexported fields }
func (*API) Achievements ¶
func (s *API) Achievements(ctx context.Context, params *AchievementsParams) (resp []Achievement, err error)
Achievements return list user achievements.
func (*API) AnimeExternalLinks ¶
func (s *API) AnimeExternalLinks( ctx context.Context, id int, params *AnimeExternalLinksParams, ) (resp []ExternalLink, err error)
func (*API) AnimeFranchise ¶
func (*API) AnimeRelated ¶
func (s *API) AnimeRelated(ctx context.Context, id int, params *AnimeRelatedParams) (resp []AnimeRelated, err error)
func (*API) AnimeRoles ¶
func (*API) AnimeScreenshots ¶
func (s *API) AnimeScreenshots( ctx context.Context, id int, params *AnimeScreenshotsParams, ) (resp []Screenshot, err error)
func (*API) AnimeSimilar ¶
func (*API) AnimeTopics ¶
func (*API) Calendar ¶
func (s *API) Calendar(ctx context.Context, params *CalendarParams) (resp []CalendarItem, err error)
func (*API) ConstantsAnime ¶
func (s *API) ConstantsAnime(ctx context.Context, params *ConstantsAnimeParams) (resp ConstantsAnime, err error)
func (*API) ConstantsClub ¶
func (s *API) ConstantsClub( ctx context.Context, params *ConstantsClubParams, ) (resp ConstantsClub, err error)
func (*API) ConstantsManga ¶
func (s *API) ConstantsManga(ctx context.Context, params *ConstantsMangaParams) (resp ConstantsManga, err error)
func (*API) ConstantsSmileys ¶
func (s *API) ConstantsSmileys( ctx context.Context, params *ConstantsSmileysParams, ) (resp []ConstantsSmiley, err error)
func (*API) ConstantsUserRate ¶
func (s *API) ConstantsUserRate( ctx context.Context, params *ConstantsUserRateParams, ) (resp ConstantsUserRate, err error)
func (*API) MangaExternalLinks ¶
func (s *API) MangaExternalLinks( ctx context.Context, id int, params *MangaExternalLinksParams, ) (resp []ExternalLink, err error)
func (*API) MangaFranchise ¶
func (*API) MangaRelated ¶
func (s *API) MangaRelated(ctx context.Context, id int, params *MangaRelatedParams) (resp []MangaRelated, err error)
func (*API) MangaRoles ¶
func (*API) MangaSimilar ¶
func (*API) MangaTopics ¶
func (*API) Publishers ¶
func (*API) Ranobe ¶
func (s *API) Ranobe(ctx context.Context, id int, params *RanobeParams) (resp RanobeFull, err error)
func (*API) RanobeExternalLinks ¶
func (s *API) RanobeExternalLinks(ctx context.Context, id int, params *RanobeExternalLinksParams) ( resp []ExternalLink, err error, )
func (*API) RanobeFranchise ¶
func (*API) RanobeRelated ¶
func (s *API) RanobeRelated(ctx context.Context, id int, params *RanobeRelatedParams) ( resp []RanobeRelated, err error, )
func (*API) RanobeRoles ¶
func (s *API) RanobeRoles( ctx context.Context, id int, params *RanobeRolesParams, ) (resp []RanobeRole, err error)
func (*API) RanobeSimilar ¶
func (*API) RanobeTopics ¶
func (*API) StatsActiveUsers ¶
func (*API) TopicsUpdates ¶
func (s *API) TopicsUpdates(ctx context.Context, params *TopicsUpdatesParams) (resp []TopicsUpdate, err error)
func (*API) UsersAnimeRates ¶
func (s *API) UsersAnimeRates( ctx context.Context, id int, params *UsersAnimeRateParams, ) (resp []UsersAnimeRate, err error)
type Achievement ¶
type AchievementsParams ¶
type AchievementsParams struct {
UserID int `json:"user_id"`
}
type Anime ¶
type Anime struct { ID int `json:"id"` Name string `json:"name"` Russian string `json:"russian"` Image Image `json:"image"` URL string `json:"url"` Kind *string `json:"kind,omitempty"` Score string `json:"score"` Status string `json:"status"` Episodes int `json:"episodes"` EpisodesAired int `json:"episodes_aired"` AiredOn *string `json:"aired_on,omitempty"` ReleasedOn *string `json:"released_on,omitempty"` }
type AnimeDuration ¶
type AnimeDuration string
const ( // Less than 10 minutes. AnimeDurationsS AnimeDuration = "S" // Less than 30 minutes. AnimeDurationsD AnimeDuration = "D" // More than 30 minutes. AnimeDurationsF AnimeDuration = "F" )
type AnimeExternalLinksParams ¶
type AnimeExternalLinksParams struct{}
type AnimeFranchiseParams ¶
type AnimeFranchiseParams struct{}
type AnimeFull ¶
type AnimeFull struct { Anime Rating string `json:"rating"` English []string `json:"english"` Japanese []string `json:"japanese"` Synonyms []string `json:"synonyms"` LicenseNameRu *string `json:"license_name_ru,omitempty"` Duration int `json:"duration"` Description *string `json:"description,omitempty"` DescriptionHTML string `json:"description_html"` DescriptionSource *string `json:"description_source,omitempty"` Franchise *string `json:"franchise,omitempty"` Favoured bool `json:"favoured"` Anons bool `json:"anons"` Ongoing bool `json:"ongoing"` ThreadID *int `json:"thread_id,omitempty"` TopicID *int `json:"topic_id,omitempty"` MyanimelistID int `json:"myanimelist_id"` RatesScoresStats []RatesScoresStat `json:"rates_scores_stats"` RatesStatusesStats []RatesStatusesStat `json:"rates_statuses_stats"` UpdatedAt time.Time `json:"updated_at"` NextEpisodeAt *time.Time `json:"next_episode_at,omitempty"` Fansubbers []string `json:"fansubbers"` Fandubbers []string `json:"fandubbers"` Licensors []string `json:"licensors"` Genres []Genre `json:"genres"` Studios []Studio `json:"studios"` Videos []Video `json:"videos"` Screenshots []Screenshot `json:"screenshots"` UserRate *UserRate `json:"user_rate,omitempty"` }
type AnimeImage ¶
type AnimeKind ¶
type AnimeKind string
const ( AnimeKindTv AnimeKind = "tv" AnimeKindMovie AnimeKind = "movie" AnimeKindOva AnimeKind = "ova" AnimeKindOna AnimeKind = "ona" AnimeKindSpecial AnimeKind = "special" AnimeKindMusic AnimeKind = "music" // TV13, TV24 and TV48 used in AnimesParams. AnimeKindTV13 AnimeKind = "tv_13" AnimeKindTV24 AnimeKind = "tv_24" AnimeKindTV48 AnimeKind = "tv_48" )
type AnimeMyList ¶
type AnimeMyList string
const ( AnimeMyListPlanned AnimeMyList = "planned" AnimeMyListWatching AnimeMyList = "watching" AnimeMyListRewatching AnimeMyList = "rewatching" AnimeMyListCompleted AnimeMyList = "completed" AnimeMyListOnHold AnimeMyList = "on_hold" AnimeMyListDropped AnimeMyList = "dropped" )
type AnimeOrder ¶
type AnimeOrder string
const ( AnimeOrderID AnimeOrder = "id" AnimeOrderIDDesc AnimeOrder = "id_desc" AnimeOrderRanked AnimeOrder = "ranked" AnimeOrderKind AnimeOrder = "kind" AnimeOrderPopularity AnimeOrder = "popularity" AnimeOrderName AnimeOrder = "name" AnimeOrderAiredOn AnimeOrder = "aired_on" AnimeOrderEpisodes AnimeOrder = "episodes" AnimeOrderStatus AnimeOrder = "status" AnimeOrderRandom AnimeOrder = "random" AnimeOrderCreatedAt AnimeOrder = "created_at" AnimeOrderCreatedAtDesc AnimeOrder = "created_at_desc" )
type AnimeParams ¶
type AnimeParams struct{}
type AnimeRating ¶
type AnimeRating string
const ( // No rating. AnimeRatingNone AnimeRating = "none" // All ages. AnimeRatingG AnimeRating = "g" // Children. AnimeRatingPG AnimeRating = "pg" // Teens 13 or older. AnimeRatingPG13 AnimeRating = "pg_13" // Recommended (violence & profanity). AnimeRatingR AnimeRating = "r" // Mild Nudity (may also contain violence & profanity). AnimeRatingRPlus AnimeRating = "r_plus" // Hentai (extreme sexual content/nudity). AnimeRatingRX AnimeRating = "rx" )
type AnimeRelated ¶
type AnimeRelatedParams ¶
type AnimeRelatedParams struct{}
type AnimeRole ¶
type AnimeRole struct { Roles []string `json:"roles"` RolesRussian []string `json:"roles_russian"` Character *CharacterBase `json:"character"` Person *PersonBase `json:"person"` }
type AnimeRolesParams ¶
type AnimeRolesParams struct{}
type AnimeScreenshotsParams ¶
type AnimeScreenshotsParams struct{}
type AnimeSimilarParams ¶
type AnimeSimilarParams struct{}
type AnimeStatus ¶
type AnimeStatus string
const ( AnimeStatusAnons AnimeStatus = "anons" AnimeStatusOngoing AnimeStatus = "ongoing" AnimeStatusReleased AnimeStatus = "released" )
type AnimeTopicsParams ¶
type AnimeTopicsParams struct{}
type AnimesParams ¶
type AnimesParams struct { // Must be a number between 1 and 100000. Page int `json:"page,omitempty"` // 50 maximum. Must be a number. Limit int `json:"limit,omitempty"` // Must be one of: id, id_desc, ranked, kind, popularity, name, // aired_on, episodes, status, random, ranked_random, // ranked_shiki, created_at, created_at_desc. Order AnimeOrder `json:"order,omitempty"` // Must be one of: tv, movie, ova, ona, special, music, tv_13, tv_24, tv_48. Kind AnimeKind `json:"kind,omitempty"` // Must be one of: anons, ongoing, released. Status AnimeStatus `json:"status,omitempty"` // Examples: summer_2017, 2016, 2014_2016, 199x. Season string `json:"season,omitempty"` // Minimal anime score. Must be a number. Score int `json:"score,omitempty"` // Must be one of: S, D, F. Duration AnimeDuration `json:"duration,omitempty"` // Must be one of: none, g, pg, pg_13, r, r_plus, rx. Rating AnimeRating `json:"rating,omitempty"` // List of genre ids separated by comma. Genre string `json:"genre,omitempty"` // List of studio ids separated by comma. Studio string `json:"studio,omitempty"` // List of franchises separated by comma. Franchise string `json:"franchise,omitempty"` // Set to false to allow hentai, yaoi and yuri. Must be one of: true, false. Censored bool `json:"censored,omitempty"` // Status of manga in current user list. // Must be one of: planned, watching, rewatching, completed, on_hold, dropped. MyList AnimeMyList `json:"mylist,omitempty"` // List of anime ids separated by comma. IDs string `json:"ids,omitempty"` // List of anime ids separated by comma. ExcludeIDs string `json:"exclude_ids,omitempty"` // Search phrase to filter animes by name. Must be a String. Search string `json:"search,omitempty"` }
type Ban ¶
type Ban struct { ID int `json:"id"` UserID int `json:"user_id"` Comment *Comment `json:"comment,omitempty"` ModeratorID int `json:"moderator_id"` Reason string `json:"reason"` CreatedAt time.Time `json:"created_at"` DurationMinutes int `json:"duration_minutes"` User User `json:"user"` Moderator User `json:"moderator"` }
type BansParams ¶
Undocumented params for /api/bans See: https://github.com/shikimori/shikimori/blob/master/app/controllers/api/v1/bans_controller.rb Page constraints: From 1 to ... Limit constraints: From 1 to 30.
type CalendarItem ¶
type CalendarParams ¶
type CalendarParams struct { // Set to true to discard hentai, yaoi and yuri Censored bool `json:"censored,omitempty"` }
type Character ¶
type Character struct { CharacterBase Altname string `json:"altname"` Japanese string `json:"japanese"` Description *string `json:"description"` DescriptionHTML string `json:"description_html"` DescriptionSource *string `json:"description_source"` Favoured bool `json:"favoured"` ThreadID *int `json:"thread_id"` TopicID *int `json:"topic_id"` UpdatedAt time.Time `json:"updated_at"` Seyu []PersonBase `json:"seyu"` Animes []CharacterAnime `json:"animes"` Mangas []interface{} `json:"mangas"` }
type CharacterAnime ¶
type CharacterBase ¶
type CharacterParams ¶
type CharacterParams struct{}
type ClubCommentPolicy ¶
type ClubCommentPolicy string
const ( ClubCommentPolicyFree ClubCommentPolicy = "free" ClubCommentPolicyMembers ClubCommentPolicy = "members" ClubCommentPolicyAdmins ClubCommentPolicy = "admins" )
type ClubImageUploadPolicy ¶
type ClubImageUploadPolicy string
const ( ClubImageUploadPolicyMembers ClubImageUploadPolicy = "members" ClubImageUploadPolicyAdmins ClubImageUploadPolicy = "admins" )
type ClubJoinPolicy ¶
type ClubJoinPolicy string
const ( ClubJoinPolicyFree ClubJoinPolicy = "free" ClubJoinPolicyMemberInvite ClubJoinPolicy = "member_invite" ClubJoinPolicyAdminInvite ClubJoinPolicy = "admin_invite" ClubJoinPolicyOwnerInvite ClubJoinPolicy = "owner_invite" )
type Comment ¶
type Comment struct { ID int `json:"id"` CommentableID int `json:"commentable_id"` CommentableType string `json:"commentable_type"` Body string `json:"body"` UserID int `json:"user_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` IsOfftopic bool `json:"is_offtopic"` }
type ConstantsAnime ¶
type ConstantsAnime struct { Kind []AnimeKind `json:"kind"` Status []AnimeStatus `json:"status"` }
type ConstantsAnimeParams ¶
type ConstantsAnimeParams struct{}
type ConstantsClub ¶
type ConstantsClub struct { JoinPolicy []ClubJoinPolicy `json:"join_policy"` CommentPolicy []ClubCommentPolicy `json:"comment_policy"` ImageUploadPolicy []ClubImageUploadPolicy `json:"image_upload_policy"` }
type ConstantsClubParams ¶
type ConstantsClubParams struct{}
type ConstantsManga ¶
type ConstantsManga struct { Kind []MangaKind `json:"kind"` Status []MangaStatus `json:"status"` }
type ConstantsMangaParams ¶
type ConstantsMangaParams struct{}
type ConstantsSmiley ¶
type ConstantsSmileysParams ¶
type ConstantsSmileysParams struct{}
type ConstantsUserRate ¶
type ConstantsUserRate struct {
Status []UserRateStatus `json:"status"`
}
type ConstantsUserRateParams ¶
type ConstantsUserRateParams struct{}
type ExternalLink ¶
type ExternalLink struct { ID *int `json:"id,omitempty"` Kind string `json:"kind"` URL string `json:"url"` Source string `json:"source"` EntryID int `json:"entry_id"` EntryType string `json:"entry_type"` CreatedAt *time.Time `json:"created_at,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` ImportedAt *time.Time `json:"imported_at,omitempty"` }
type ForumsParams ¶
type ForumsParams struct{}
type Franchise ¶
type Franchise struct { Links []FranchiseLink `json:"links"` Nodes []FranchiseNode `json:"nodes"` CurrentID int `json:"current_id"` }
type FranchiseLink ¶
type FranchiseNode ¶
type GenresParams ¶
type GenresParams struct{}
type Manga ¶
type Manga struct { ID int `json:"id"` Name string `json:"name"` Russian string `json:"russian"` Image Image `json:"image"` URL string `json:"url"` Kind string `json:"kind"` Score string `json:"score"` Status string `json:"status"` Volumes int `json:"volumes"` Chapters int `json:"chapters"` AiredOn string `json:"aired_on"` ReleasedOn string `json:"released_on"` }
type MangaExternalLinksParams ¶
type MangaExternalLinksParams struct{}
type MangaFranchiseParams ¶
type MangaFranchiseParams struct{}
type MangaFull ¶
type MangaFull struct { Manga English []string `json:"english"` Japanese []string `json:"japanese"` Synonyms []string `json:"synonyms"` LicenseNameRu *string `json:"license_name_ru"` Description string `json:"description"` DescriptionHTML string `json:"description_html"` DescriptionSource *string `json:"description_source"` Franchise *string `json:"franchise"` Favoured bool `json:"favoured"` Anons bool `json:"anons"` Ongoing bool `json:"ongoing"` ThreadID *int `json:"thread_id"` TopicID *int `json:"topic_id"` MyanimelistID int `json:"myanimelist_id"` RatesScoresStats []RatesScoresStat `json:"rates_scores_stats"` RatesStatusesStats []RatesStatusesStat `json:"rates_statuses_stats"` Licensors []string `json:"licensors"` Genres []Genre `json:"genres"` Publishers []Publisher `json:"publishers"` UserRate *UserRate `json:"user_rate"` }
type MangaParams ¶
type MangaParams struct{}
type MangaRelated ¶
type MangaRelatedParams ¶
type MangaRelatedParams struct{}
type MangaRole ¶
type MangaRole struct { Roles []string `json:"roles"` RolesRussian []string `json:"roles_russian"` Character *CharacterBase `json:"character"` Person *PersonBase `json:"person"` }
type MangaRolesParams ¶
type MangaRolesParams struct{}
type MangaSimilarParams ¶
type MangaSimilarParams struct{}
type MangaStatus ¶
type MangaStatus string
const ( MangaStatusAnons MangaStatus = "anons" MangaStatusOngoing MangaStatus = "ongoing" MangaStatusReleased MangaStatus = "released" MangaStatusPaused MangaStatus = "paused" MangaStatusDiscontinued MangaStatus = "discontinued" )
type MangaTopicsParams ¶
type MangaTopicsParams struct{}
type NotFoundError ¶
type NotFoundError struct{}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type PeopleParams ¶
type PeopleParams struct{}
type Person ¶
type Person struct { PersonBase Japanese string `json:"japanese"` JobTitle string `json:"job_title"` BirthOn PersonDate `json:"birth_on"` DeceasedOn PersonDate `json:"deceased_on"` Website string `json:"website"` GrouppedRoles []RoleStat `json:"groupped_roles"` Roles []PersonRole `json:"roles"` Works []PersonWork `json:"works"` TopicID int `json:"topic_id"` PersonFavoured bool `json:"person_favoured"` Producer bool `json:"producer"` ProducerFavoured bool `json:"producer_favoured"` Mangaka bool `json:"mangaka"` MangakaFavoured bool `json:"mangaka_favoured"` Seyu bool `json:"seyu"` SeyuFavoured bool `json:"seyu_favoured"` UpdatedAt time.Time `json:"updated_at"` ThreadID int `json:"thread_id"` Birthday PersonDate `json:"birthday"` }
type PersonBase ¶
type PersonCharacter ¶
type PersonDate ¶
type PersonRole ¶
type PersonRole struct { Characters []PersonCharacter `json:"characters"` Animes []Anime `json:"animes"` }
type PersonWork ¶
type PublishersParams ¶
type PublishersParams struct{}
type Ranobe ¶
type Ranobe struct { ID int `json:"id"` Name string `json:"name"` Russian string `json:"russian"` Image Image `json:"image"` URL string `json:"url"` Kind string `json:"kind"` Score string `json:"score"` Status string `json:"status"` Volumes int `json:"volumes"` Chapters int `json:"chapters"` AiredOn string `json:"aired_on"` ReleasedOn string `json:"released_on"` }
type RanobeExternalLinksParams ¶
type RanobeExternalLinksParams struct{}
type RanobeFranchiseParams ¶
type RanobeFranchiseParams struct{}
type RanobeFull ¶
type RanobeFull struct { Ranobe English []string `json:"english"` Japanese []string `json:"japanese"` Synonyms []string `json:"synonyms"` LicenseNameRu *string `json:"license_name_ru"` Description string `json:"description"` DescriptionHTML string `json:"description_html"` DescriptionSource *string `json:"description_source"` Franchise *string `json:"franchise"` Favoured bool `json:"favoured"` Anons bool `json:"anons"` Ongoing bool `json:"ongoing"` ThreadID *int `json:"thread_id"` TopicID *int `json:"topic_id"` MyanimelistID int `json:"myanimelist_id"` RatesScoresStats []RatesScoresStat `json:"rates_scores_stats"` RatesStatusesStats []RatesStatusesStat `json:"rates_statuses_stats"` Licensors []string `json:"licensors"` Genres []Genre `json:"genres"` Publishers []Publisher `json:"publishers"` UserRate *UserRate `json:"user_rate"` }
type RanobeParams ¶
type RanobeParams struct{}
type RanobeRelated ¶
type RanobeRelatedParams ¶
type RanobeRelatedParams struct{}
type RanobeRole ¶
type RanobeRole struct { Roles []string `json:"roles"` RolesRussian []string `json:"roles_russian"` Character *CharacterBase `json:"character"` Person *PersonBase `json:"person"` }
type RanobeRolesParams ¶
type RanobeRolesParams struct{}
type RanobeSimilarParams ¶
type RanobeSimilarParams struct{}
type RanobeTopicsParams ¶
type RanobeTopicsParams struct{}
type RatesScoresStat ¶
type RatesStatusesStat ¶
type RoleStat ¶
func (*RoleStat) UnmarshalJSON ¶
type Screenshot ¶
type StatsActiveUsersParams ¶
type StatsActiveUsersParams struct{}
type StudiosParams ¶
type StudiosParams struct{}
type TooManyRequestsError ¶
type TooManyRequestsError struct{}
func (TooManyRequestsError) Error ¶
func (e TooManyRequestsError) Error() string
type Topic ¶
type Topic struct { ID int `json:"id"` TopicTitle string `json:"topic_title"` Body string `json:"body"` HTMLBody string `json:"html_body"` CreatedAt time.Time `json:"created_at"` CommentsCount int `json:"comments_count"` Forum Forum `json:"forum"` User User `json:"user"` Type string `json:"type"` LinkedID int `json:"linked_id"` LinkedType string `json:"linked_type"` Linked *TopicLinked `json:"linked,omitempty"` Viewed bool `json:"viewed"` LastCommentViewed *bool `json:"last_comment_viewed,omitempty"` Event *string `json:"event,omitempty"` Episode *int `json:"episode,omitempty"` }
type TopicsHotParams ¶
type TopicsHotParams struct { // 10 maximum. Limit int `json:"limit,omitempty"` }
type TopicsUpdate ¶
type TopicsUpdatesParams ¶
type UnknownError ¶
func (UnknownError) Error ¶
func (e UnknownError) Error() string
type UnprocessableEntityErrors ¶
type UnprocessableEntityErrors []string
func (UnprocessableEntityErrors) Error ¶
func (e UnprocessableEntityErrors) Error() string
type UserRate ¶
type UserRate struct { ID int `json:"id"` UserID *int `json:"user_id,omitempty"` TargetID *int `json:"target_id,omitempty"` TargetType *UserRateTargetType `json:"target_type,omitempty"` Score int `json:"score"` Status UserRateStatus `json:"status"` Rewatches int `json:"rewatches"` Episodes *int `json:"episodes,omitempty"` Volumes *int `json:"volumes,omitempty"` Chapters *int `json:"chapters,omitempty"` Text *string `json:"text,omitempty"` TextHTML string `json:"text_html"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type UserRateParams ¶
type UserRateParams struct{}
type UserRateStatus ¶
type UserRateStatus string
const ( UserRatePlanned UserRateStatus = "planned" UserRateWatching UserRateStatus = "watching" UserRateRewatching UserRateStatus = "rewatching" UserRateCompleted UserRateStatus = "completed" UserRateOnHold UserRateStatus = "on_hold" UserRateDropped UserRateStatus = "dropped" )
type UserRateTargetType ¶
type UserRateTargetType string
const ( UserRateTargetAnime UserRateTargetType = "Anime" UserRateTargetManga UserRateTargetType = "Manga" )
type UserRatesParams ¶
type UserRatesParams struct { UserID int `json:"user_id,omitempty"` TargetID int `json:"target_id,omitempty"` // Must be one of: Anime, Manga. TargetType UserRateTargetType `json:"target_type,omitempty"` // Must be one of: planned, watching, rewatching, completed, on_hold, dropped Status UserRateStatus `json:"status,omitempty"` // Must be a number between 1 and 100000. This field is ignored when user_id is set Page int `json:"page,omitempty"` // 1000 maximum. This field is ignored when user_id is set Limit int `json:"limit,omitempty"` }
type UsersAnimeRate ¶
type UsersAnimeRate struct { ID int `json:"id"` Score int `json:"score"` Status string `json:"status"` Text *string `json:"text,omitempty"` Episodes *int `json:"episodes,omitempty"` Chapters *int `json:"chapters,omitempty"` Volumes *int `json:"volumes,omitempty"` TextHTML string `json:"text_html"` Rewatches int `json:"rewatches"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` User User `json:"user"` Anime *Anime `json:"anime,omitempty"` // Can represent Manga and Ranobe structs Manga *interface{} `json:"manga,omitempty"` }
type UsersAnimeRateParams ¶
type UsersAnimeRateParams struct { // необязательно // Validations: // // Must be a number between 1 and 100000. Page int `json:"page,omitempty"` // необязательно // 5000 maximum // // Validations: Limit int `json:"limit,omitempty"` Status UserRateStatus `json:"status,omitempty"` // Set to true to discard hentai, yaoi and yuri Censored bool `json:"censored,omitempty"` }
type VideoParams ¶
type VideoParams struct{}