HbookerAPI

module
v0.0.0-...-2aac936 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT

README

HbookerAPI

example

package main

import (
	"fmt"
	"github.com/VeronicaAlexia/HbookerAPI/ciweimao/book"
	"github.com/VeronicaAlexia/HbookerAPI/config"
	"testing"
)

func Test_Book(t *testing.T) {
	config.AppConfig.AppVersion = "2.9.290"
	config.AppConfig.Account = ""
	config.AppConfig.LoginToken = ""
	config.AppConfig.DeviceToken = "ciweimao_"
	book_info := book.GET_BOOK_INFORMATION("100280239")
	fmt.Println(book_info.Data.BookInfo.BookName)
	fmt.Println(book_info.Data.BookInfo.AuthorName)
	for _, div := range book.GET_DIVISION_LIST_BY_BOOKID(book_info.Data.BookInfo.BookID).Data.ChapterList {
		for _, chapter := range div.ChapterList {
			fmt.Println("第", div.DivisionIndex, "卷:", div.DivisionName, chapter.ChapterTitle)
		}
	}
	fmt.Println("Done: Test_Book")

}
    
    ```

Directories

Path Synopsis
ciweimao
tag
pkg

Jump to

Keyboard shortcuts

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