Versions in this module Expand all Collapse all v0 v0.1.2 Jul 18, 2023 Changes in this version + const OffsetFieldMaxBookmarkID + const OffsetFieldOffset v0.1.1 Jan 14, 2023 Changes in this version type Illust + IllustAIType IllustAIType + type IllustAIType int + const IllustAITypeAIGenerated + const IllustAITypeNone + const IllustAITypeOriginal v0.1.0 Dec 3, 2022 Changes in this version + func HookAuth(f func(string, string, time.Time) error) + type Account struct + Account string + ID string + IsMailAuthorized bool + IsPremium bool + MailAddress string + Name string + ProfileImage AccountProfileImages + XRestrict int + func LoadAuth(token, refreshToken string, tokenDeadline time.Time) (*Account, error) + func Login(username, password string) (*Account, error) + type AccountProfileImages struct + Px16 string + Px170 string + Px50 string + type AppPixivAPI struct + func NewApp() *AppPixivAPI + func (a *AppPixivAPI) Download(id uint64, target any) (sizes []int64, err error) + func (a *AppPixivAPI) IllustBookmarkAdd(illustID uint64, restrict string, tags []string) error + func (a *AppPixivAPI) IllustBookmarkDelete(illustID uint64) error + func (a *AppPixivAPI) IllustBookmarkDetail(illustID uint64) (*IllustBookmarkDetail, error) + func (a *AppPixivAPI) IllustCommentAdd(illustID uint64, comment string, parentCommentID int) (*IllustCommentAddResult, error) + func (a *AppPixivAPI) IllustComments(illustID uint64, offset int, includeTotalComments bool) (*IllustComments, error) + func (a *AppPixivAPI) IllustDetail(id uint64) (*Illust, error) + func (a *AppPixivAPI) IllustFollow(restrict string, offset int) ([]Illust, int, error) + func (a *AppPixivAPI) IllustRanking(mode string, filter string, date string, offset string) (*IllustsResponse, error) + func (a *AppPixivAPI) IllustRecommended(contentType string, includeRankingLabel bool, filter string, ...) (*IllustRecommended, error) + func (a *AppPixivAPI) IllustRelated(illustID uint64, filter string, seedIllustIDs []string) (*IllustsResponse, error) + func (a *AppPixivAPI) SearchIllust(word string, searchTarget string, sort string, duration string, filter string, ...) (*SearchIllustResult, error) + func (a *AppPixivAPI) ShowcaseArticle(showcaseID string) (*ShowcaseArticle, error) + func (a *AppPixivAPI) TrendingTagsIllust(filter string) (*TrendingTagsIllust, error) + func (a *AppPixivAPI) UgoiraMetadata(illustID uint64) (*UgoiraMetadata, error) + func (a *AppPixivAPI) UserBookmarkTagsIllust(restrict string, offset int) (*UserBookmarkTags, error) + func (a *AppPixivAPI) UserBookmarksIllust(uid uint64, restrict string, maxBookmarkID int, tag string) ([]Illust, int, error) + func (a *AppPixivAPI) UserDetail(uid uint64) (*UserDetail, error) + func (a *AppPixivAPI) UserFollowAdd(userID uint64, restrict string) error + func (a *AppPixivAPI) UserFollowDelete(userID uint64, restrict string) error + func (a *AppPixivAPI) UserFollower(userID uint64, restrict string, offset int) (*UserFollowList, error) + func (a *AppPixivAPI) UserFollowing(userID uint64, restrict string, offset int) (*UserFollowList, error) + func (a *AppPixivAPI) UserIllusts(uid uint64, _type string, offset int) ([]Illust, int, error) + func (a *AppPixivAPI) UserList(userID uint64, filter string, offset int) (*UserList, error) + func (a *AppPixivAPI) UserMyPixiv(userID uint64, offset int) (*UserFollowList, error) + func (a *AppPixivAPI) WithClient(client *http.Client) *AppPixivAPI + func (a *AppPixivAPI) WithDownloadClient(client *http.Client) *AppPixivAPI + func (a *AppPixivAPI) WithTmpdir(dir string) *AppPixivAPI + type Body struct + Category string + Entry Entry + FollowingUserIDs []interface{} + Footer string + ID string + Illusts []BodyIllust + Introduction string + IsOnlyOneUser bool + Lang string + PublishDate int + RelatedArticles []RelatedArticle + SubCategory string + SubCategoryIntroduction string + SubCategoryLabel string + Tags []Tag + ThumbnailURL string + Title string + type BodyIllust struct + Description string + IllustBookStyle string + IllustComment string + IllustCreateDate string + IllustCustomThumbnailUploadDatetime interface{} + IllustExt string + IllustHash string + IllustHeight string + IllustID int + IllustPageCount string + IllustRestrict string + IllustSanityLevel int + IllustServerID string + IllustTitle string + IllustType string + IllustUploadDate string + IllustUserID string + IllustWidth string + IllustXRestrict string + Language string + SpotlightArticleID int + URL URL + UgoiraMeta interface{} + UserAccount string + UserComment string + UserIcon string + UserName string + type BookmarkDetail struct + IsBookmarked bool + Restrict string + Tags []BookmarkDetailTag + type BookmarkDetailTag struct + IsRegistered bool + Name string + type Comment struct + CommentComment string + Date string + HasReplies bool + ID uint64 + ParentComment *Comment + User *User + type Entry struct + ArticleURL string + Body string + Catchphrase string + FacebookCount string + Footer string + Header string + ID string + Intro string + Language string + PixivisionCategory PixivisionCategory + PixivisionCategorySlug string + PixivisionSubcategory PixivisionSubcategory + PixivisionSubcategorySlug string + PublishDate int + PureTitle string + Sidebar string + Tags []Tag + Title string + TwitterCount string + type Frame struct + Delay int + File string + type Illust struct + Caption string + CreateDate time.Time + Height int + ID uint64 + Images *Images + IsBookmarked bool + IsMuted bool + MetaPages []MetaPage + MetaSinglePage *MetaSinglePage + PageCount int + Restrict int + SanityLevel int + Series *Series + Tags []Tag + Title string + Tools []string + TotalBookmarks int + TotalComments int + TotalView int + Type string + User *User + Visible bool + Width int + XRestrict int + type IllustBookmarkDetail struct + BookmarkDetail BookmarkDetail + type IllustCommentAddResult struct + Comment Comment + type IllustComments struct + Comments []Comment + NextURL string + TotalComments uint64 + type IllustRecommended struct + ContestExists bool + Illusts []Illust + NextURL string + PrivacyPolicy *PrivacyPolicy + RankingIllusts []interface{} + type IllustResponse struct + Illust Illust + type IllustsResponse struct + Illusts []Illust + NextURL string + type Images struct + Large string + Medium string + Original string + SquareMedium string + type MetaPage struct + Images Images + type MetaSinglePage struct + OriginalImageURL string + type Perror struct + Code int + Message string + type PixivisionCategory struct + Introduction string + Label string + type PixivisionSubcategory struct + BigImageURL string + ImageURL string + Introduction string + Label string + LabelEn string + Title string + type PrivacyPolicy struct + type Profile struct + AddressID uint64 + BackgroundImageURL string + Birth string + BirthDay string + BirthYear uint64 + CountryCode string + Gender string + IsPremium bool + IsUsingCustomProfileImage bool + Job string + JobID uint64 + PawooURL string + Region string + TotalFollowUsers uint64 + TotalIllustBookmarksPublic uint64 + TotalIllustSeries uint64 + TotalIllusts uint64 + TotalManga uint64 + TotalMypixivUsers uint64 + TotalNovelSeries uint64 + TotalNovels uint64 + TwitterAccount string + TwitterURL string + Webpage interface{} + type ProfilePublicity struct + BirthDay string + BirthYear string + Gender string + Job string + Pawoo bool + Region string + type RelatedArticle struct + AdvertisementID string + Category string + EditStatus string + En PrivacyPolicy + FacebookCount string + HasBody string + ID string + Illusts []interface{} + IsPr string + IsSample string + Ja PrivacyPolicy + MainAbtestPatternID string + Memo string + NovelIDs []interface{} + NumberedTags []interface{} + PixivisionCategorySlug string + PixivisionSubcategorySlug string + PrClientName string + PublishDate int + TagIDs interface{} + Tags []interface{} + Thumbnail string + ThumbnailIllustID string + TranslationStatus string + TweetCount string + TweetMaxCount string + Zh PrivacyPolicy + ZhTw PrivacyPolicy + type SearchIllustResult struct + Illusts []Illust + NextURL string + SearchSpanLimit int + type Series struct + ID uint64 + Title string + type ShowcaseArticle struct + Body []Body + Error bool + Message string + type Tag struct + Name string + TranslatedName string + type TrendTag struct + Illust *Illust + Tag string + TranslatedName string + type TrendingTagsIllust struct + TrendTags []TrendTag + type URL struct + The1200X1200 string + The768X1200 string + Ugoira1920X1080 string + Ugoira600X600 string + type UgoiraMetadata struct + UgoiraMetadataUgoiraMetadata UgoiraMetadataClass + type UgoiraMetadataClass struct + Frames []Frame + ZipURLs UserImages + type User struct + Account string + Comment string + ID uint64 + IsFollowed bool + Name string + ProfileImages *UserImages + type UserBookmarkTags struct + BookmarkTags []interface{} + NextURL string + type UserDetail struct + Profile *Profile + ProfilePublicity *ProfilePublicity + User *User + Workspace *Workspace + type UserFollowList struct + NextURL string + UserPreviews []UserPreview + type UserImages struct + Medium string + type UserList struct + Users []interface{} + type UserPreview struct + Illusts []Illust + IsMuted bool + Novels []interface{} + User User + type Workspace struct + Chair string + Comment string + Desk string + Desktop string + Monitor string + Mouse string + Music string + Pc string + Printer string + Scanner string + Tablet string + Tool string + WorkspaceImageURL string