Updating README.md

This commit is contained in:
Alex Yatskov 2017-05-30 19:48:24 -07:00
parent 5d482ff4ce
commit c317735fb1

View File

@ -104,7 +104,7 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON
*Sample response*: *Sample response*:
``` ```
2 3
``` ```
* **deckNames** * **deckNames**
@ -185,21 +185,23 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON
{ {
action: 'addNote', action: 'addNote',
params: { params: {
deckName: 'Default', note: {
modelName: 'Basic', deckName: 'Default',
fields: { modelName: 'Basic',
Front: 'front content', fields: {
Back: 'back content', Front: 'front content',
/* ... */ Back: 'back content',
}, /* ... */
tags: [ },
'yomichan', tags: [
/* ... */ 'yomichan',
], /* ... */
audio: /* optional */ { ],
url: 'https://assets.languagepod101.com/dictionary/japanese/audiomp3.php?kanji=猫&kana=ねこ', audio: /* optional */ {
filename: 'yomichan_ねこ_猫.mp3', url: 'https://assets.languagepod101.com/dictionary/japanese/audiomp3.php?kanji=猫&kana=ねこ',
skipHash: '7e2c2f954ef6051373ba916f000168dc' filename: 'yomichan_ねこ_猫.mp3',
skipHash: '7e2c2f954ef6051373ba916f000168dc'
}
} }
} }
} }
@ -207,7 +209,7 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON
*Sample response*: *Sample response*:
``` ```
null 1496198395707
``` ```
* **addNotes** * **addNotes**
@ -249,6 +251,7 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON
*Sample response*: *Sample response*:
``` ```
[ [
1496198395707,
null, null,
/* ... */ /* ... */
] ]