Skip to content

Commit

Permalink
updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dbratz1177 committed Nov 19, 2018
1 parent 28785ad commit 6cfcb75
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ KiteAPI.requestJSON({path}).then(data => {
})
```

#### .isKiteLocal()

Makes a `GET` request to Kite at the endpoint `/clientapi/iskitelocal`. Responds with a boolean resolving Promise to `true` in the case of a `200` status code, `false` otherwise

```js
KiteAPI.isKiteLocal().then(isLocal => {
// do stuff related to kite-locality
})
```

#### .setKiteSetting(key, value)

Makes a `POST` request to Kite at the endpoint `/clientapi/settings/${key}`, where the body is set to `value`. It automatically parses the JSON response when the status code is `200`
Expand Down

0 comments on commit 6cfcb75

Please sign in to comment.