From cd66410ff3290dd7aec11ea75bfca40cbc02c720 Mon Sep 17 00:00:00 2001 From: mikkkee Date: Sat, 17 Jun 2023 17:52:14 +0800 Subject: [PATCH] Update documentation for new method guiImportFile --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index e7f2eb4..b6d97e0 100644 --- a/README.md +++ b/README.md @@ -1617,6 +1617,35 @@ corresponding to when the API was available for use. ``` +#### `guiImportFile` + +* Invokes the *Import... (Ctrl+Shift+I)* dialog with an optional file path. Brings up the dialog for user to review the import. Supports all file types that Anki supports. Brings open file dialog if no path is provided. Forward slashes must be used in the path on Windows. + +
+ Sample request: + + ```json + { + "action": "guiImportFile", + "version": 6, + "params": { + "path": "C:/Users/Desktop/cards.txt" + } + } + ``` +
+ +
+ Sample result: + + ```json + { + "result": null, + "error": null + } + ``` +
+ #### `guiExitAnki` * Schedules a request to gracefully close Anki. This operation is asynchronous, so it will return immediately and