Versions in this module Expand all Collapse all v1 v1.2.0 Nov 12, 2022 Changes in this version type Client + func (p *Client) Followed(visi Visibility) (*IllustrationListing, error) v1.1.2 Oct 29, 2022 Changes in this version + const Client_ID + const Client_secret + const DATE_ASC + const DATE_DESC + const TAGS_EXACT + const TAGS_PARTIAL + const TITLE_AND_CAPTION + const WITHIN_DAY + const WITHIN_MONTH + const WITHIN_NONE + const WITHIN_WEEK + type BookmarkTagsResponse struct + Bookmark_tags []struct{ ... } + Offset int + type Client struct + func NewClient() *Client + func (p *Client) GetIllust(id int) (*Illustration, error) + func (p *Client) GetMyId() int + func (p *Client) GetRequest(url string) (*http.Response, error) + func (p *Client) GetUser(id int) (*User, error) + func (p *Client) IllustFromID(ID int) *Illustration + func (p *Client) IsLoggedIn() bool + func (p *Client) Login(token string) error + func (p *Client) RankedIllust(mode RankingMode, day time.Time) (*IllustrationListing, error) + func (p *Client) RecommendedIllust(kind IllustrationType) (*IllustrationListing, error) + func (p *Client) RefreshToken() string + func (p *Client) SearchIllust(term string, target SearchTarget, sorting SearchSort, duration SearchDuration) (*IllustrationListing, error) + func (p *Client) SearchUser(term string, sorting SearchSort, duration SearchDuration) (*UserListing, error) + func (p *Client) SetToken(access, refresh string) + func (p *Client) UserFromID(ID int) *User + type Comment struct + Comment string + Date time.Time + ID int + User *User + type Comments struct + Comments []*Comment + Offset int + Total_comments int + type Illustration struct + Caption string + Create_date time.Time + Height int + ID int + Image_urls multisize + Is_bookmarked bool + Is_muted bool + Meta_pages []struct{ ... } + Meta_single_page struct{ ... } + Page_count int + Restrict int + Sanity_level int + Series struct{ ... } + Tags []struct{ ... } + Title string + Total_bookmarks int + Total_comments int + Total_view int + Type IllustrationType + User *User + Width int + X_restrict int + func (i *Illustration) Bookmark(visi Visibility) error + func (i *Illustration) Fetch() error + func (i *Illustration) GetComments(offset int) (*Comments, error) + func (i *Illustration) GetRelated() (*IllustrationListing, error) + func (i *Illustration) GetUgoiraMetadata() (*UgoiraMetadata, error) + func (i *Illustration) Unbookmark() error + type IllustrationListing struct + func (ls *IllustrationListing) Buffered() int + func (ls *IllustrationListing) HasNext() bool + func (ls *IllustrationListing) Next() (*Illustration, error) + func (ls *IllustrationListing) NextRequiresFetch() bool + type IllustrationType string + const ILTYPE_ILUST + const ILTYPE_MANGA + const ILTYPE_NONE + const ILTYPE_UGOIRA + type RankingMode string + const DAY + const DAY_FEMALE + const DAY_MALE + const MONTH + const WEEK + const WEEK_ORIGINAL + const WEEK_ROOKIE + type SearchDuration string + type SearchSort string + type SearchTarget string + type UgoiraMetadata struct + Frames []struct{ ... } + Zip_urls multisize + type User struct + Account string + Comment string + ID int + Is_followed bool + Name string + Profile_image_urls multisize + func (u *User) BookmarkTags(visi Visibility, offset int) (*BookmarkTagsResponse, error) + func (u *User) Bookmarks(tag string, visibility Visibility) (*IllustrationListing, error) + func (u *User) Fetch() error + func (u *User) Follow(visi Visibility) error + func (u *User) Followers() (*UserListing, error) + func (u *User) Following(visi Visibility) (*UserListing, error) + func (u *User) Illustrations(kind IllustrationType) (*IllustrationListing, error) + func (u *User) Related() (*UserListing, error) + func (u *User) Unfollow() error + type UserListing struct + func (ls *UserListing) Buffered() int + func (ls *UserListing) HasNext() bool + func (ls *UserListing) Next() (*User, error) + func (ls *UserListing) NextRequiresFetch() bool + type Visibility string + const VISI_PRIVATE + const VISI_PUBLIC