Documentation ¶
Index ¶
- Constants
- Variables
- func AddBookmark(illust_id int64, restrict int, comment string, tags []string) *gapi.GapiApi
- func BookmarkList(tag string, rest string, lang string, offset int64, limit int64) *gapi.GapiApi
- func CheckPHPSESSID(p *gapi.Gapi) error
- func CookieLogin(phpsessid string) *gapi.GapiApi
- func DeleteBookmark(illust_id int64) *gapi.GapiApi
- func FollowIllust(page int, mode string, lang string) *gapi.GapiApi
- func GetCsrfToken() *gapi.GapiApi
- func GetCsrfTokenString(p *gapi.Gapi) (string, error)
- func GetIllust(id int64, lang string) *gapi.GapiApi
- func GetUserInfo() *gapi.GapiApi
- func Pximg(picURL string) *gapi.GapiApi
- type GetUserInfoData
Constants ¶
View Source
const (
URL = "https://www.pixiv.net"
)
Variables ¶
View Source
var ( GlobalHeader = http.Header{ "User-Agent": {gapi.DefaultUserAgent}, } )
Functions ¶
func AddBookmark ¶
收藏artwork/添加bookmark illust_id => 插画/漫画编号 restrict => 0:公开模式/1:非公开模式 comment => 收藏备注 tags => 收藏标签
func BookmarkList ¶
获取收藏artwork/获取bookmark tag => 插画/漫画收藏标签 rest => show:公开模式/hide:非公开模式 lang => 返回语言 offset => 偏移数量 limit => 每页数量
func CheckPHPSESSID ¶
func CookieLogin ¶
使用Cookie登录 phpsessid => PHPSESSID (浏览器f12获取)
func DeleteBookmark ¶
取消收藏artwork/取消添加bookmark illust_id => 插画/漫画编号
func FollowIllust ¶
获取账户的关注动态 page => 页数 mode => 模式 (all, r18) lang => 语言 (zh, en)
Types ¶
type GetUserInfoData ¶
type GetUserInfoData struct { Id string `json:"id"` GapiId string `json:"pixiv_id"` Name string `json:"name"` ProfileImg string `json:"profile_img"` ProfileImgBig string `json:"profile_img_big"` IsPremium bool `json:"is_premium"` XRestrict int `json:"xrestrict"` Adult bool `json:"adult"` SafeMode bool `json:"safe_mode"` Development bool `json:"development"` CsrfToken string `json:"csrf_token"` }
Click to show internal directories.
Click to hide internal directories.