View Source AnkiConnect (anki_connect v0.1.1)
This module delegates all functions to AnkiConnect.Actions.*
and AnkiConnect.Services.*
modules.
Functions can be called from your Elixir application as follows:
AnkiConnect.add_note(%{
note: %{
deck_name: "TEST DECK",
model_name: "Basic",
fields: %{
Front: "front content",
Back: "back content"
}
}
})
or from the command line using mix anki_connect
task:
> mix anki_connect add_note --note='{"deck_name": "TEST DECK", "model_name": "Basic", "fields": {"Front": "front content", "Back": "back content"}}'
1684946786121
another example:
> mix anki_connect add_notes_from_file --file="words.md" --deck="TEST DECK"
[1684955655336, 1684955655337, ...]