client

package
v0.0.0-...-d53e09b Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ACTPUSH = "/actpush"
View Source
const ADD_BOOK_TO_BOOKSHELF = "/pockets/-1/novels"
View Source
const AUTHOR_USERS_INFO_BY_USERID = "/users/%v/dynamics"
View Source
const AUTHOR_USERS_INFO_BY_USERID_NOVELS = "/users/%v/novels"
View Source
const BOOKSHELF_INFORMATION = "/user/Pockets"
View Source
const BOOK_INFO_BY_ID = "/novels/%v"
View Source
const BOOK_INFO_EXPAND = "" /* 251-byte string literal not displayed */
View Source
const CATALOGUE_BY_ID = "/novels/%v/dirs"
View Source
const CHAPTER_BY_CHAPTER_ID = "/Chaps/%v"
View Source
const CHAPTER_CONTENT_EXPAND = "content,needFireMoney,originNeedFireMoney,tsukkomi,chatlines,isbranch,isContentEncrypted"
View Source
const COMMENT_BY_ID = "/novels/%v/Cmts"
View Source
const LONG_COMMENT_BY_ID = "/novels/%v/lcmts"
View Source
const NOVELS_SPECIALPUSHS = "/novels/specialpushs"
View Source
const NOVEL_LIKE_BOOK_BY_ID = "/novels/%v/favs"
View Source
const NOVEL_TAG_BY_TAGID = "/novels/0/sysTags/novels"
View Source
const ORDER_BOOK_BY_ID = "/novels/%v/orderedchaps"
View Source
const RANK_BOOK_ALL = "/ranks/all/novels"
View Source
const RANK_BOOK_MONTH = "/ranks/month/novels"
View Source
const RANK_BOOK_WEEK = "/ranks/week/novels"
View Source
const SEARCH_BOOK_BY_KEYWORD = "/search/novels/result"
View Source
const SIGNUP = "/sessions"
View Source
const SPECIALPUSH = "/specialpush"
View Source
const SYS_TAG_NAME_LIST = "/novels/0/sysTags"
View Source
const TSUKKOMI_BY_CHAPTER_ID = "/chaps/0/%v/tsukkomis"
View Source
const USERS_INFO_BY_USERID = "/users/%v"
View Source
const USER_FEEDS = "/user/feeds"
View Source
const USER_INFO = "/user"
View Source
const USER_INFO_EXPAND = "" /* 234-byte string literal not displayed */
View Source
const USER_INFO_MONEY = "/user/money"
View Source
const USER_INFO_POSITION = "/position"
View Source
const USER_INFO_READINGTIME = "/user/readingtime"
View Source
const USER_INFO_TASKS = "/user/tasks"
View Source
const USER_INFO_TASKS_TASKID = "/user/tasks/%v"
View Source
const USER_SIGN_INFO = "/user/newSignInfo"
View Source
const WEB_SITE = "https://api.sfacg.com"
View Source
const WECAT_WEB_SITE = "https://minipapi.sfacg.com/pas/mpapi"

Variables

View Source
var ExportCookie string
View Source
var ExportDeviceId = ""

Functions

func JsonData

func JsonData(payload any) *bytes.Buffer

Types

type Utils

type Utils struct {
	Request    *http.Request
	Response   *http.Response
	ResultBody []byte
	// contains filtered or unexported fields
}

func Get

func Get(endPoint string, params url.Values) *Utils

func NewRequest

func NewRequest(method, endPoint string, params any) *Utils

func Post

func Post(endPoint string, params any) *Utils

func Put

func Put(endPoint string, params any) *Utils

func (*Utils) Decode

func (is *Utils) Decode(s any) *Utils

func (*Utils) GetPoint

func (is *Utils) GetPoint() string

func (*Utils) Json

func (is *Utils) Json() gjson.Result

func (*Utils) Requests

func (is *Utils) Requests(queryData any) *Utils

func (*Utils) Send

func (is *Utils) Send() *Utils

func (*Utils) String

func (is *Utils) String() string

func (*Utils) WriteResultString

func (is *Utils) WriteResultString() error

Jump to

Keyboard shortcuts

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