Nearsighted Prank Master

    kisi-client

    8.0.0 • Public • Published

    Build Status npm version

    kisi-inc/client-js

    A very simple JavaScript client for the Kisi API.

    Installation

    Run npm install kisi-client or add kisi-client to your package.json by running npm install --save kisi-client.

    Usage

    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))
        })

    To login into legacy account,

    import Kisi from "kisi-client"
    
    const kisiClient = new Kisi()
    
    kisiClient
        .signIn({ 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))
        })

    Documentation

    https://api.kisi.io/docs

    Support

    Keywords

    none

    Install

    npm i kisi-client

    DownloadsWeekly Downloads

    94

    Version

    8.0.0

    License

    MIT

    Unpacked Size

    19 kB

    Total Files

    13

    Last publish

    Collaborators

    • ce07c3
    • vramana