This SDK only supports for the part of reciting with the API host: https://api.frdic.com
, includes:
POST /api/v2/auth/authorize
POST /route/recite/checkin
POST /route/recite/getcheckininfo
POST /route/recite/getlastbook
POST /route/recite/answercard
POST /route/recite/startrecite
POST /route/recite/syncrecite
POST /route/recite/getuserinfo
General HTTP Headers:
- Content-Type: application/json;charset=utf-8
- User-Agent: /eusoft_eudic_en_mac/4.0.2/A4:83:E7:90:13:5D/explain/
export EUDIC_USERNAME="change me"
export EUDIC_PASSWORD="change me"
go test ./...
go get -u github.com/Lonor/go-eudic
package main
import (
eudic "github.com/Lonor/go-eudic"
)
func main() {
client, _ := eudic.NewEudicClientByPassword(
"mail address",
"your password",
)
book, _, _ := client.LastBookService.GetLastBook()
}
This project is under the GPLv3.