rezi-auth-js
v1.0.0
Published
A javascript code flow auth wrapper for rezi api.
Downloads
2
Readme
rezi-auth-js
A Rezi authentication wrapper for resource owner flow with JavaScript.
API documentation here: https://github.com/dezrez/DezrezCoreAPI
Website: https://www.dezrez.com
Installation
npm install rezi-auth-js --save
Quick start
Require rezi-auth-js
var Rezi = require('rezi-auth-js');
var rezi = new Rezi({
grant_type: 'client_credentials', // required
scopes: 'property_read', // required
environment: 'uat', // required
clientId: 'clientId', // required
secret: 'clientSecret', // required
authenticate: true // (Optional) If you want to automatically authenticate as part of instantiation, rezi must be globally scoped.
});
You can also authenticate with a callback like this if authenticate is set to false
;
rezi.authenticate(function(err, credentials){
// Credentials here including access_token.
});
Issues
Email : [email protected]
Website : www.dezrez.com
Release History
- 1.0.0 Initial release