Documentation
¶
Index ¶
- Constants
- type APIError
- type AuthCodeToken
- type Client
- func (c *Client) Download(ctx context.Context, rawURL string, dst io.Writer) error
- func (c *Client) ExchangeAuthorizationCode(ctx context.Context, code, codeVerifier string) (AuthCodeToken, error)
- func (c *Client) IllustDetail(ctx context.Context, id int64) (*IllustDetail, error)
- func (c *Client) IllustFollow(ctx context.Context, restrict string, offset int) (*IllustList, error)
- func (c *Client) IllustRanking(ctx context.Context, mode, date string, offset int) (*IllustList, error)
- func (c *Client) IllustRecommended(ctx context.Context, offset int) (*IllustList, error)
- func (c *Client) IllustRelated(ctx context.Context, id int64, offset int) (*IllustList, error)
- func (c *Client) IsAuthenticated() bool
- func (c *Client) Refresh(ctx context.Context) error
- func (c *Client) RefreshTokenValue() string
- func (c *Client) SearchIllust(ctx context.Context, word, target, sort, duration string, offset int) (*IllustList, error)
- func (c *Client) SearchUser(ctx context.Context, word string, offset int) (*UserPreviewList, error)
- func (c *Client) SetRefreshToken(token string)
- func (c *Client) TrendingTagsIllust(ctx context.Context) (*TrendTags, error)
- func (c *Client) UgoiraMetadata(ctx context.Context, id int64) (*UgoiraMetadataResult, error)
- func (c *Client) UserBookmarks(ctx context.Context, userID int64, restrict, tag string, maxBookmarkID int64) (*IllustList, error)
- func (c *Client) UserDetail(ctx context.Context, userID int64) (*User, error)
- func (c *Client) UserFollowing(ctx context.Context, userID int64, restrict string, offset int) (*UserPreviewList, error)
- func (c *Client) UserID() int64
- func (c *Client) UserName() string
- type Illust
- type IllustDetail
- type IllustList
- type Option
- type TrendTags
- type UgoiraMetadataResult
- type User
- type UserPreviewList
Constants ¶
View Source
const ( DefaultAPIBase = "https://app-api.pixiv.net" DefaultOAuthBase = "https://oauth.secure.pixiv.net" DefaultOAuthClientID = "MOBrBDS8blbauoSck0ZfDbtuzpyT" DefaultOAuthClientSecret = "lsACyCD94FhDUtGTXi3QzcFE2uU1hqtDaKeqrdwj" DefaultUserAgent = "PixivAndroidApp/5.0.234 (Android 11; Pixel 5)" DefaultAppOS = "android" DefaultAppOSVersion = "11" DefaultAppVersion = "5.0.234" )
View Source
const DefaultOAuthRedirectURI = "https://app-api.pixiv.net/web/v1/users/auth/pixiv/callback"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCodeToken ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExchangeAuthorizationCode ¶
func (*Client) IllustDetail ¶
func (*Client) IllustFollow ¶
func (*Client) IllustRanking ¶
func (*Client) IllustRecommended ¶
func (*Client) IllustRelated ¶
func (*Client) IsAuthenticated ¶
func (*Client) RefreshTokenValue ¶
func (*Client) SearchIllust ¶
func (*Client) SearchUser ¶
func (*Client) SetRefreshToken ¶
func (*Client) TrendingTagsIllust ¶
func (*Client) UgoiraMetadata ¶
func (*Client) UserBookmarks ¶
func (*Client) UserDetail ¶
func (*Client) UserFollowing ¶
type IllustDetail ¶
type IllustDetail = model.IllustDetail
type IllustList ¶
type IllustList = model.IllustList
type UgoiraMetadataResult ¶
type UgoiraMetadataResult = model.UgoiraMetadataResult
type UserPreviewList ¶
type UserPreviewList = model.UserPreviewList
Click to show internal directories.
Click to hide internal directories.