Comparing version 4.3.0 to 4.4.0
@@ -7,2 +7,6 @@ # Changelog | ||
### 4.4.0 / 2019-03-25 | ||
* Add support for `revoke-all` endpoint | ||
### 4.3.0 / 2019-03-18 | ||
@@ -9,0 +13,0 @@ |
@@ -67,2 +67,15 @@ "use strict"; | ||
} | ||
}, { | ||
key: "revokeAll", | ||
value: function revokeAll(keep_access_token) { | ||
return this.connection.request({ | ||
method: 'POST', | ||
path: "/a/".concat(this.appId, "/").concat(this.constructor.collectionName, "/").concat(this.id, "/revoke-all"), | ||
body: { | ||
keep_access_token: keep_access_token | ||
} | ||
}).catch(function (err) { | ||
return Promise.reject(err); | ||
}); | ||
} | ||
}]); | ||
@@ -69,0 +82,0 @@ |
{ | ||
"name": "nylas", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.", | ||
@@ -5,0 +5,0 @@ "main": "lib/nylas.js", |
@@ -469,2 +469,8 @@ Nylas Node.js SDK [![Travis build status](https://travis-ci.org/nylas/nylas-nodejs.svg?branch=master)](https://travis-ci.org/nylas/nylas-nodejs) | ||
.then(response => console.log(response)); | ||
// Revoke all tokens or all but one token for an account | ||
Nylas.accounts | ||
.first() | ||
.then(account => account.revokeAll('kept_access_token')) | ||
.then(response => console.log(response)); | ||
``` | ||
@@ -471,0 +477,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
540
157349
25
2874