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
.
To login into organization account,
import Kisi from "kisi-client"
const kisiClient = new Kisi()
kisiClient
.signIn({ domain: 'organization-domain', email: 'email', password: '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