Update README for importPackage action
This commit is contained in:
parent
32bf6559ed
commit
6b6b8b689b
24
README.md
24
README.md
@ -323,6 +323,30 @@ guarantee that your application continues to function properly in the future.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* **importPackage**
|
||||||
|
|
||||||
|
Imports a file in `.apkg` format into the collection. Returns `true` if successful or `false` otherwise.
|
||||||
|
Note that the file path is relative to Anki's collection.media folder, not to the client.
|
||||||
|
|
||||||
|
*Sample request*:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"action": "importPackage",
|
||||||
|
"version": 6,
|
||||||
|
"params": {
|
||||||
|
"path": "/data/Deck.apkg",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
*Sample result*:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"result": true,
|
||||||
|
"error": null
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
#### Decks
|
#### Decks
|
||||||
|
|
||||||
* **deckNames**
|
* **deckNames**
|
||||||
|
Loading…
Reference in New Issue
Block a user