pixiv

package
v0.0.0-...-9e8ec43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ADD = "v1/illust/comment/add"
View Source
const API_BASE = "https://app-api.pixiv.net/"
View Source
const BOOKMARKS = "v1/user/bookmarks/illust"
View Source
const BOOKMARK_ADD = "v2/illust/bookmark/add"
View Source
const BOOKMARK_DELETE = "v1/illust/bookmark/delete"
View Source
const BOOKMARK_DETAIL = "v2/illust/bookmark/detail"
View Source
const BOOKMARK_TAG = "v1/user/bookmark-tags/illust"
View Source
const BOOK_CONTENT = "webview/v2/novel" // return html, need parse to get content
View Source
const BOOK_DETAIL = "v2/novel/detail"
View Source
const COMMENTS = "v1/illust/comments"
View Source
const DETAIL = "v1/illust/detail"
View Source
const FOLLOW = "v2/illust/follow"
View Source
const METADATA = "v1/ugoira/metadata"
View Source
const RANKING = "v1/illust/ranking"
View Source
const RECOMMENDED = "v1/illust/recommended"
View Source
const RECOMMENDED_NO_LOGIN = "v1/illust/recommended-nologin"
View Source
const RELATED = "v2/illust/related"
View Source
const SEARCH = "v1/search/illust"
View Source
const TRENDING_TAGS = "v1/trending-tags/illust"
View Source
const USER = "v1/user/"
View Source
const USER_AUTHOR = "v1/user/illusts"
View Source
const USER_DETAIL = "v1/user/detail"
View Source
const USER_FOLLOW = "v1/user/follow/"
View Source
const USER_LIST = "v2/user/list"
View Source
const USER_MYPIXIV = "/v1/user/mypixiv"
View Source
const WEB_ARTICLE = "ajax/showcase/article"
View Source
const WEB_BASE = "https://www.pixiv.net"
View Source
const WEB_BOOK_CONTENT = "/ajax/novel/" // return json, no need parse
View Source
const WEB_BOOK_SERIES = "/ajax/novel/series_content/"

Variables

This section is empty.

Functions

func NextUrl

func NextUrl(next_url, path string, params map[string]string) (string, map[string]string)

func NovelSeriesContent

func NovelSeriesContent(series_id string) ([]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL