Documentation ¶
Index ¶
- Constants
- func NextUrl(next_url, path string, params map[string]string) (string, map[string]string)
- func NovelSeriesContent(series_id string) ([]string, error)
- type AppPixivAPI
- func (a *AppPixivAPI) AppNovelContent(novel_id string) string
- func (a *AppPixivAPI) IllustBookmarkAdd(illustID int, restrict string, tags []string) error
- func (a *AppPixivAPI) IllustBookmarkDelete(illustID int) error
- func (a *AppPixivAPI) IllustBookmarkDetail(illustID int) (*pixivstruct.IllustBookmarkDetail, error)
- func (a *AppPixivAPI) IllustCommentAdd(illustID int, comment string, parentCommentID int) (*pixivstruct.IllustCommentAddResult, error)
- func (a *AppPixivAPI) IllustComments(illustID int, next_url string) (*pixivstruct.IllustComments, error)
- func (a *AppPixivAPI) IllustDetail(id string) (*pixivstruct.Illust, error)
- func (a *AppPixivAPI) IllustFollow(restrict string, offset int) ([]pixivstruct.Illust, error)
- func (a *AppPixivAPI) IllustRanking(mode string) (*pixivstruct.IllustsResponse, error)
- func (a *AppPixivAPI) IllustRelated(illustID int, filter string, seedIllustIDs []string) (*pixivstruct.IllustsResponse, error)
- func (a *AppPixivAPI) NovelContent(novel_id string) (string, error)
- func (a *AppPixivAPI) NovelDetail(novel_id string) (*pixivstruct.NovelDetail, error)
- func (a *AppPixivAPI) Recommended(next_url string, requireAuth bool) (*pixivstruct.IllustRecommended, error)
- func (a *AppPixivAPI) SearchIllust(word string, next_url string) (*pixivstruct.SearchIllustResult, error)
- func (a *AppPixivAPI) ShowcaseArticle(showcaseID string) (*pixivstruct.ShowcaseArticle, error)
- func (a *AppPixivAPI) TrendingTagsIllust(filter string) (*pixivstruct.TrendingTagsIllust, error)
- func (a *AppPixivAPI) UgoiraMetadata(illustID int) (*pixivstruct.UgoiraMetadata, error)
- func (a *AppPixivAPI) UserBookmarkTagsIllust(restrict string, next_url string) (*pixivstruct.UserBookmarkTags, error)
- func (a *AppPixivAPI) UserBookmarksIllust(uid int, next_url string) (*pixivstruct.IllustsResponse, error)
- func (a *AppPixivAPI) UserDetail(uid int) (*pixivstruct.UserDetail, error)
- func (a *AppPixivAPI) UserFollowAdd(userID int, restrict string) error
- func (a *AppPixivAPI) UserFollowDelete(userID int, restrict string) error
- func (a *AppPixivAPI) UserFollower(userID int, restrict string, offset int) (*pixivstruct.UserFollowList, error)
- func (a *AppPixivAPI) UserFollowing(userID int, restrict string, offset int) (*pixivstruct.UserFollowList, error)
- func (a *AppPixivAPI) UserIllusts(uid string, next_url string) (*pixivstruct.IllustsResponse, error)
- func (a *AppPixivAPI) UserList(userID int, next_url string) (*pixivstruct.UserList, error)
- func (a *AppPixivAPI) UserMyPixiv(userID int, next_url string) (*pixivstruct.UserFollowList, error)
Constants ¶
const ADD = "v1/illust/comment/add"
const API_BASE = "https://app-api.pixiv.net/"
const BOOKMARKS = "v1/user/bookmarks/illust"
const BOOKMARK_ADD = "v2/illust/bookmark/add"
const BOOKMARK_DELETE = "v1/illust/bookmark/delete"
const BOOKMARK_DETAIL = "v2/illust/bookmark/detail"
const BOOKMARK_TAG = "v1/user/bookmark-tags/illust"
const BOOK_CONTENT = "webview/v2/novel" // return html, need parse to get content
const BOOK_DETAIL = "v2/novel/detail"
const COMMENTS = "v1/illust/comments"
const DETAIL = "v1/illust/detail"
const FOLLOW = "v2/illust/follow"
const METADATA = "v1/ugoira/metadata"
const RANKING = "v1/illust/ranking"
const RECOMMENDED = "v1/illust/recommended"
const RECOMMENDED_NO_LOGIN = "v1/illust/recommended-nologin"
const RELATED = "v2/illust/related"
const SEARCH = "v1/search/illust"
const TRENDING_TAGS = "v1/trending-tags/illust"
const USER = "v1/user/"
const USER_AUTHOR = "v1/user/illusts"
const USER_DETAIL = "v1/user/detail"
const USER_FOLLOW = "v1/user/follow/"
const USER_LIST = "v2/user/list"
const USER_MYPIXIV = "/v1/user/mypixiv"
const WEB_ARTICLE = "ajax/showcase/article"
const WEB_BASE = "https://www.pixiv.net"
const WEB_BOOK_CONTENT = "/ajax/novel/" // return json, no need parse
const WEB_BOOK_SERIES = "/ajax/novel/series_content/"
Variables ¶
This section is empty.
Functions ¶
func NovelSeriesContent ¶
Types ¶
type AppPixivAPI ¶
type AppPixivAPI struct{}
AppPixivAPI -- App-API (6.x - app-api.pixiv.net)
func NewApp ¶
func NewApp() *AppPixivAPI
func (*AppPixivAPI) AppNovelContent ¶
func (a *AppPixivAPI) AppNovelContent(novel_id string) string
func (*AppPixivAPI) IllustBookmarkAdd ¶
func (a *AppPixivAPI) IllustBookmarkAdd(illustID int, restrict string, tags []string) error
IllustBookmarkAdd Add bookmark
func (*AppPixivAPI) IllustBookmarkDelete ¶
func (a *AppPixivAPI) IllustBookmarkDelete(illustID int) error
IllustBookmarkDelete Remove bookmark
func (*AppPixivAPI) IllustBookmarkDetail ¶
func (a *AppPixivAPI) IllustBookmarkDetail(illustID int) (*pixivstruct.IllustBookmarkDetail, error)
IllustBookmarkDetail Bookmark details
func (*AppPixivAPI) IllustCommentAdd ¶
func (a *AppPixivAPI) IllustCommentAdd(illustID int, comment string, parentCommentID int) (*pixivstruct.IllustCommentAddResult, error)
IllustCommentAdd adds a comment to given illustID
func (*AppPixivAPI) IllustComments ¶
func (a *AppPixivAPI) IllustComments(illustID int, next_url string) (*pixivstruct.IllustComments, error)
IllustComments Comments posted in a pixiv artwork
func (*AppPixivAPI) IllustDetail ¶
func (a *AppPixivAPI) IllustDetail(id string) (*pixivstruct.Illust, error)
func (*AppPixivAPI) IllustFollow ¶
func (a *AppPixivAPI) IllustFollow(restrict string, offset int) ([]pixivstruct.Illust, error)
IllustFollow restrict: [public, private]
func (*AppPixivAPI) IllustRanking ¶
func (a *AppPixivAPI) IllustRanking(mode string) (*pixivstruct.IllustsResponse, error)
IllustRanking mode: [day, week, month, day_male, day_female, week_original, week_rookie, day_manga] date: yyyy-mm-dd
func (*AppPixivAPI) IllustRelated ¶
func (a *AppPixivAPI) IllustRelated(illustID int, filter string, seedIllustIDs []string) (*pixivstruct.IllustsResponse, error)
IllustRelated returns Related works
func (*AppPixivAPI) NovelContent ¶
func (a *AppPixivAPI) NovelContent(novel_id string) (string, error)
func (*AppPixivAPI) NovelDetail ¶
func (a *AppPixivAPI) NovelDetail(novel_id string) (*pixivstruct.NovelDetail, error)
func (*AppPixivAPI) Recommended ¶
func (a *AppPixivAPI) Recommended(next_url string, requireAuth bool) (*pixivstruct.IllustRecommended, error)
func (*AppPixivAPI) SearchIllust ¶
func (a *AppPixivAPI) SearchIllust(word string, next_url string) (*pixivstruct.SearchIllustResult, error)
SearchIllust search for searchTarget - Search type
"partial_match_for_tags" - The label part is consistent "exact_match_for_tags" - The labels are exactly the same "title_and_caption" - Title description
sort: [date_desc, date_asc]
duration: [within_last_day, within_last_week, within_last_month]
func (*AppPixivAPI) ShowcaseArticle ¶
func (a *AppPixivAPI) ShowcaseArticle(showcaseID string) (*pixivstruct.ShowcaseArticle, error)
ShowcaseArticle Special feature details (disguised as Chrome)
func (*AppPixivAPI) TrendingTagsIllust ¶
func (a *AppPixivAPI) TrendingTagsIllust(filter string) (*pixivstruct.TrendingTagsIllust, error)
TrendingTagsIllust Trend label
func (*AppPixivAPI) UgoiraMetadata ¶
func (a *AppPixivAPI) UgoiraMetadata(illustID int) (*pixivstruct.UgoiraMetadata, error)
UgoiraMetadata Ugoira Info
func (*AppPixivAPI) UserBookmarkTagsIllust ¶
func (a *AppPixivAPI) UserBookmarkTagsIllust(restrict string, next_url string) (*pixivstruct.UserBookmarkTags, error)
UserBookmarkTagsIllust User favorite tag list
func (*AppPixivAPI) UserBookmarksIllust ¶
func (a *AppPixivAPI) UserBookmarksIllust(uid int, next_url string) (*pixivstruct.IllustsResponse, error)
UserBookmarksIllust restrict: [public, private]
func (*AppPixivAPI) UserDetail ¶
func (a *AppPixivAPI) UserDetail(uid int) (*pixivstruct.UserDetail, error)
func (*AppPixivAPI) UserFollowAdd ¶
func (a *AppPixivAPI) UserFollowAdd(userID int, restrict string) error
UserFollowAdd Follow users
func (*AppPixivAPI) UserFollowDelete ¶
func (a *AppPixivAPI) UserFollowDelete(userID int, restrict string) error
UserFollowDelete Unfollow users
func (*AppPixivAPI) UserFollower ¶
func (a *AppPixivAPI) UserFollower(userID int, restrict string, offset int) (*pixivstruct.UserFollowList, error)
UserFollower Follower user list
func (*AppPixivAPI) UserFollowing ¶
func (a *AppPixivAPI) UserFollowing(userID int, restrict string, offset int) (*pixivstruct.UserFollowList, error)
UserFollowing Following user list
func (*AppPixivAPI) UserIllusts ¶
func (a *AppPixivAPI) UserIllusts(uid string, next_url string) (*pixivstruct.IllustsResponse, error)
UserIllusts type: [illust, manga]
func (*AppPixivAPI) UserList ¶
func (a *AppPixivAPI) UserList(userID int, next_url string) (*pixivstruct.UserList, error)
UserList Blacklisted users
func (*AppPixivAPI) UserMyPixiv ¶
func (a *AppPixivAPI) UserMyPixiv(userID int, next_url string) (*pixivstruct.UserFollowList, error)
UserMyPixiv Users in MyPixiv