Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuki-api

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuki-api

Nuki Web Api

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

Synopsis

This package can be used with the NUKI Smartlock Web Api - https://api.nuki.io

npm install nuki-api

Code Example

let nuki = require('nuki-api'),
    instance = new nuki();

instance.apiKey = 'xxxxxxxxxxxxxxxxxxxxx'

instance.getSmartLocks(true).then(function (smartlocks) {
    console.log(smartlocks);
});

Motivation

This package was initially build to integrate the NUKI Smartlock with AirBnB, Booking.com, HomeAway and other internet calendars. Other relevant and compatible packages are:

  1. ical-booking
  2. nuki-ical (under construction)

API Reference

Get your API-key from https://web.nuki.io/nl/#/admin/web-api

RequestParameters
setApiKey(string) apiKey
getAccountUsers(bool) reload (optional)
getSmartLocks(bool) reload (optional)
getSmartLockUsers(int) smartlockId, (bool) reload (optional)
findAccountUserById(int) accountUserId
findAccountUserByName(string) name
findSmartlockById(int) smartlockId
findSmartlockByName(string) name
findAccountUserByAuthId(int) smartlockId, (int) authId
findAccountUserAuthByName(int) smartlockId, (string) name
createNukiUser(models.AccountUser) accountUser
updateNukiUser(int) accountUserId, (models.AccountUser) accountUser
removeNukiUser(int) accountUserId
grantAccess(int) smartlockId, (models.SmartlockAuth) smartlockAuth
updateAccess(int) smartlockId, (int) authId, (models.SmartlockAuth) smartlockAuth
revokeAccess(int) smartlockId, (int) authId
getLog(int) smartlockId (optional)

Contributors

If you want to contribute or donate to the project, please contact me on gijs@intelligencecompany.net.

License

MIT licence.

Keywords

FAQs

Package last updated on 14 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc