Skip to content

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