Documentation ¶
Index ¶
- func HbookerDecode(content string, encryptKey string) []byte
- func SHA256(data []byte) []byte
- type API
- func (hbooker *API) GetAutoSignAPI(device string) (*hbookermodel.LoginData, error)
- func (hbooker *API) GetBookInfo(bookId string) (*hbookermodel.BookInfo, error)
- func (hbooker *API) GetBookShelfIndexesInfoAPI(shelfId string) ([]hbookermodel.ShelfBookList, error)
- func (hbooker *API) GetBookShelfInfoAPI() ([]hbookermodel.ShelfList, error)
- func (hbooker *API) GetBuyChapterAPI(chapterId, shelfId string) (*hbookermodel.ContentBuy, error)
- func (hbooker *API) GetChapterContentAPI(chapterId, chapterKey string) (*hbookermodel.ChapterInfo, error)
- func (hbooker *API) GetChapterKey(chapterId string) (string, error)
- func (hbooker *API) GetDivisionListByBookId(bookId string) ([]hbookermodel.VolumeList, error)
- func (hbooker *API) GetGeetestRegisterAPI(UserID string) (*hbookermodel.GeetestFirstRegisterStruct, error)
- func (hbooker *API) GetSearchBooksAPI(keyword string, page any) ([]hbookermodel.BookInfo, error)
- func (hbooker *API) GetUseGeetestAPI(loginName string) (*hbookermodel.GeetestData, error)
- func (hbooker *API) GetUserInfo() (*hbookermodel.UserInfoData, error)
- func (hbooker *API) MySignLogin(username, password, validate, challenge string) (*hbookermodel.LoginData, error)deprecated
- type HttpsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HbookerDecode ¶
HbookerDecode 入口函数
Types ¶
type API ¶
type API struct {
HttpClient HttpsClient
}
func (*API) GetAutoSignAPI ¶
func (hbooker *API) GetAutoSignAPI(device string) (*hbookermodel.LoginData, error)
func (*API) GetBookInfo ¶
func (hbooker *API) GetBookInfo(bookId string) (*hbookermodel.BookInfo, error)
func (*API) GetBookShelfIndexesInfoAPI ¶
func (hbooker *API) GetBookShelfIndexesInfoAPI(shelfId string) ([]hbookermodel.ShelfBookList, error)
func (*API) GetBookShelfInfoAPI ¶
func (hbooker *API) GetBookShelfInfoAPI() ([]hbookermodel.ShelfList, error)
func (*API) GetBuyChapterAPI ¶
func (hbooker *API) GetBuyChapterAPI(chapterId, shelfId string) (*hbookermodel.ContentBuy, error)
func (*API) GetChapterContentAPI ¶
func (hbooker *API) GetChapterContentAPI(chapterId, chapterKey string) (*hbookermodel.ChapterInfo, error)
func (*API) GetChapterKey ¶ added in v0.0.8
func (*API) GetDivisionListByBookId ¶
func (hbooker *API) GetDivisionListByBookId(bookId string) ([]hbookermodel.VolumeList, error)
func (*API) GetGeetestRegisterAPI ¶
func (hbooker *API) GetGeetestRegisterAPI(UserID string) (*hbookermodel.GeetestFirstRegisterStruct, error)
func (*API) GetSearchBooksAPI ¶
func (*API) GetUseGeetestAPI ¶
func (hbooker *API) GetUseGeetestAPI(loginName string) (*hbookermodel.GeetestData, error)
func (*API) GetUserInfo ¶ added in v0.1.2
func (hbooker *API) GetUserInfo() (*hbookermodel.UserInfoData, error)
func (*API) MySignLogin
deprecated
added in
v0.1.2
func (hbooker *API) MySignLogin(username, password, validate, challenge string) (*hbookermodel.LoginData, error)
Deprecated: MySignLogin is deprecated, hbooker has joined login verification, so this method is no longer available
type HttpsClient ¶
type HttpsClient struct { Version string APIBaseURL string UserAgent string AndroidApiKey string DeviceToken string LoginToken string Account string Debug bool OutputDebug bool ProxyURL string ProxyURLArray []string }
func (*HttpsClient) NewDefault ¶
func (httpsClient *HttpsClient) NewDefault() *req.Client
Click to show internal directories.
Click to hide internal directories.