Updating README.md
This commit is contained in:
parent
c2842dda4f
commit
178f8417bc
10
README.md
10
README.md
@ -47,8 +47,8 @@ extensions) can then communicate with it via HTTP POST requests.
|
|||||||
|
|
||||||
### Sample Invocation ###
|
### Sample Invocation ###
|
||||||
|
|
||||||
Every request consists of a JSON-encoded object containing an *action*, and a set of contextual *parameters*.
|
Every request consists of a JSON-encoded object containing an *action*, and a set of contextual *parameters*. A simple
|
||||||
A simple example of a JavaScript application communicating with the extension is illustrated below:
|
example of a JavaScript application communicating with the extension is illustrated below:
|
||||||
|
|
||||||
```JavaScript
|
```JavaScript
|
||||||
function ankiInvoke(action, params={}) {
|
function ankiInvoke(action, params={}) {
|
||||||
@ -82,10 +82,8 @@ curl localhost:8765 -X POST -d '{"action": "version", "params": {}}'
|
|||||||
|
|
||||||
### Supported Actions ###
|
### Supported Actions ###
|
||||||
|
|
||||||
The following actions are currently supported.
|
Below is a list of currently supported actions. Note that the sample requests are written here as JavaScript objects
|
||||||
|
rather than raw JSON. If you are writing raw requests be sure to send valid JSON (i.e. quote all keys and strings with
|
||||||
Note that the sample requests are written here as Javascript objects rather than raw JSON.
|
|
||||||
If you are writing raw requests be sure to send valid JSON (i.e. quote all keys and strings with
|
|
||||||
`"`, and remove any comments).
|
`"`, and remove any comments).
|
||||||
|
|
||||||
* **version**
|
* **version**
|
||||||
|
Loading…
Reference in New Issue
Block a user