ankiConnect
AnkiConnect - AnkiWeb
FooSoft/anki-connect: Anki plugin to expose a remote API for creating flash cards.
API:
How to use AnkiConnect to make card? : Anki
endpointは、anki(ankiconnectをaddonで入れている)を立ち上げて '
http://127.0.0.1:8765'
jsonを投げる
code: body.json
{
"action": "addNote",
"version": 6,
"params": {
"note": {
"deckName": "Default",
"modelName": "Basic",
"fields": {
"Front": "front content",
"Back": "back content"
},
"tags":
"api"
,
}
}
参考:
Ankiに英単語を追加するChrome拡張をつくった - Ryota Arai - Medium