A very simple JavaScript client for the Kisi API.
Run npm install kisi-client
or add kisi-client
to your package.json
by running npm install --save kisi-client
.
import Kisi from "kisi-client"
const kisiClient = new Kisi()
kisiClient
.signIn("email", "password")
.then(() => {
kisiClient
.get("places")
.then(places => console.log(places))
kisiClient
.get("places/1")
.then(place => console.log(place))
kisiClient
.post("locks/1/unlock")
.then(result => console.log(result))
})
- File issues on Github
- Or visit our Gitter dev channel (https://gitter.im/kisi-inc/Lobby).