From d7e58c519ae1ae7a53bb5adcb47122462feccbf9 Mon Sep 17 00:00:00 2001 From: Glutanimate Date: Sun, 28 May 2017 22:22:21 +0200 Subject: [PATCH] Document guiBrowse() and guiAddCards() --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index a76bcfb..b43aa23 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,47 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON ] ``` +* **guiBrowse** + + Invokes the card browser and searches for a given query. Returns an array of identifiers of the cards that were found. + + *Sample request*: + ``` + { + action: 'guiBrowse', + params: { + query: 'deck:current' + } + } + ``` + + *Sample response*: + ``` + [ + 1494723142483, + 1494703460437, + 1494703479525, + /* ... */ + ] + ``` + +* **guiAddCards** + + Invokes the AddCards dialog. + + *Sample request*: + ``` + { + action: 'guiAddCards', + params: {} + } + ``` + + *Sample response*: + ``` + None + ``` + * **upgrade** Displays a confirmation dialog box in Anki asking the user if they wish to upgrade AnkiConnect to the latest version