Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultAPIEndpoint = "https://app-api.pixiv.net" DefaultRateLimitEvery = 1 * time.Second DefaultRateLimitBurst = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type Comment ¶
type Comment struct { ID uint64 `json:"id"` Comment string `json:"comment"` Date string `json:"date"` User *User `json:"user"` HasReplies bool `json:"has_replies"` }
func FetchCommentList ¶
type Illust ¶
type Illust struct { Item // illust / manga Type string `json:"type"` Tools []string `json:"tools"` Width int `json:"width"` Height int `json:"height"` // Series <unknown type> `json:"series"` SanityLevel int `json:"sanity_level"` // appears when page_count > 1 MetaPages []*MetaPage `json:"meta_pages"` // appears when page_count == 1 MetaSinglePage *MetaSinglePage `json:"meta_single_page"` }
func FetchIllustList ¶
type Item ¶
type Item struct { ID int `json:"id"` Title string `json:"title"` // html(like?) document Caption string `json:"caption"` Restrict int `json:"restrict"` User User `json:"user"` Tags []Tag `json:"tags"` ImageUrls ImageUrls `json:"image_urls"` // use time.RFC3339 to decode CreateDate string `json:"create_date"` PageCount int `json:"page_count"` TotalView int `json:"total_view"` TotalBookmarks int `json:"total_bookmarks"` IsBookmarked bool `json:"is_bookmarked"` IsMuted bool `json:"is_muted"` Visible bool `json:"visible"` }
type MetaSinglePage ¶
type MetaSinglePage struct {
OriginalImageUrl string `json:"original_image_url"`
}
type MockClient ¶
type OAuthSession ¶
type OAuthSession struct { Endpoint string Limiter *rate.Limiter // contains filtered or unexported fields }
A client for Pixiv smartphone apis
func NewOAuthClient ¶
func NewOAuthClient(auth *AuthConfig) (*OAuthSession, error)
type OAuthTokenSource ¶
type OAuthTokenSource struct {
// contains filtered or unexported fields
}
type TrendingTag ¶
type UserDetails ¶
type UserPreview ¶
type UserPreview struct { User *User `json:"user"` Illusts []*Illust `json:"illusts"` Novels []*Novel `json:"novels"` IsMuted bool `json:"is_muted"` }
func FetchUserPreviewList ¶
func UnmarshalUserPreviewList ¶
func UnmarshalUserPreviewList(r io.Reader) ([]*UserPreview, string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.