FooSoft / anki-connect

Anki plugin to expose a remote API for creating flash cards.
https://foosoft.net/projects/anki-connect/
Other
1.94k stars 219 forks source link

Add card without gui #341

Open epszaw opened 2 years ago

epszaw commented 2 years ago

Hello!

Is it possible to add new cards to a deck without gui interaction?

pgshow commented 2 years ago

I am following this question too.

oakkitten commented 2 years ago

I suppose addNote or addNotes should do the job?

epszaw commented 2 years ago

I guess, note and card are different entities. And, by the way, addNote and addNotes don't work as expected

oakkitten commented 2 years ago

You can't add a card without adding a note. Cards are “a view” into a note so to say. You add cards by adding notes, and you delete cards by deleting notes.

What's the issue with addNote?

ghzgod commented 2 years ago

I think you guys are using guiAddCards instead of addNote or addNotes. I made the same mistake. When you use addNote it will add the front/back without a prompt. @lamartire @pgshow