Documentation ¶
Index ¶
- func HookAuth(f func(string, string, time.Time) error)
- type Account
- type AccountProfileImages
- type AppPixivAPI
- func (a *AppPixivAPI) Download(id uint64, path string) ([]int64, []error)
- func (a *AppPixivAPI) IllustDetail(id uint64) (*Illust, error)
- func (a *AppPixivAPI) IllustFollow(restrict string, offset int) ([]Illust, int, 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) UserIllusts(uid uint64, _type string, offset int) ([]Illust, int, error)
- type Illust
- type Images
- type MetaPage
- type MetaSinglePage
- type Perror
- type Tag
- type User
- type UserDetail
- type UserImages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { ID string `json:"id"` Name string `json:"name"` Account string `json:"account"` MailAddress string `json:"mail_address"` IsPremium bool `json:"is_premium"` XRestrict int `json:"x_restrict"` IsMailAuthorized bool `json:"is_mail_authorized"` ProfileImage AccountProfileImages `json:"profile_image_urls"` }
type AccountProfileImages ¶
type AppPixivAPI ¶
type AppPixivAPI struct {
// contains filtered or unexported fields
}
AppPixivAPI -- App-API (6.x - app-api.pixiv.net)
func NewApp ¶
func NewApp() *AppPixivAPI
func (*AppPixivAPI) Download ¶
func (a *AppPixivAPI) Download(id uint64, path string) ([]int64, []error)
Download a specific picture from pixiv id
func (*AppPixivAPI) IllustDetail ¶
func (a *AppPixivAPI) IllustDetail(id uint64) (*Illust, error)
IllustDetail get a detailed illust with id
func (*AppPixivAPI) IllustFollow ¶
IllustFollow restrict: [public, private]
func (*AppPixivAPI) UserBookmarksIllust ¶
func (a *AppPixivAPI) UserBookmarksIllust(uid uint64, restrict string, maxBookmarkID int, tag string) ([]Illust, int, error)
UserBookmarksIllust restrict: [public, private]
func (*AppPixivAPI) UserDetail ¶
func (a *AppPixivAPI) UserDetail(uid uint64) (*UserDetail, error)
func (*AppPixivAPI) UserIllusts ¶
UserIllusts type: [illust, manga]
type Illust ¶
type Illust struct { ID uint64 `json:"id"` Title string `json:"title"` Type string `json:"type"` Images Images `json:"image_urls"` Caption string `json:"caption"` Restrict int `json:"restrict"` User User `json:"user"` Tags []Tag `json:"tags"` Tools []string `json:"tools"` CreateData string `json:"create_data"` PageCount int `json:"page_count"` Width int `json:"width"` Height int `json:"height"` SanityLevel int `json:"sanity_level"` // TODO: // Series `json:"series"` MetaSinglePage MetaSinglePage `json:"meta_single_page"` MetaPages []MetaPage `json:"meta_pages"` TotalView int `json:"total_view"` TotalBookmarks int `json:"total_bookmarks"` IsBookmarked bool `json:"is_bookmarked"` Visible bool `json:"visible"` IsMuted bool `json:"is_muted"` TotalComments int `json:"total_comments"` }
type MetaSinglePage ¶
type MetaSinglePage struct {
OriginalImageURL string `json:"original_image_url"`
}
type UserDetail ¶
type UserDetail struct {
User *User `json:"user"`
}
type UserImages ¶
type UserImages struct {
Medium string `json:"medium"`
}
Click to show internal directories.
Click to hide internal directories.