Skip to content

[WIP] EUDIC 欧路词典背单词 SDK. It only supports reciting API.

License

Notifications You must be signed in to change notification settings

la3rence/go-eudic

Repository files navigation

CI

EUDIC SDK for Go

HTTP REST endpoints

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 ./...

Usage

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()
}

LICENSE

This project is under the GPLv3.

About

[WIP] EUDIC 欧路词典背单词 SDK. It only supports reciting API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages