Comparing version 4.4.0 to 4.5.0
@@ -7,2 +7,6 @@ # Changelog | ||
### 4.5.0 / 2019-04-02 | ||
* Add support for `/ip_addresses` endpoint | ||
### 4.4.0 / 2019-03-25 | ||
@@ -9,0 +13,0 @@ |
@@ -80,2 +80,12 @@ "use strict"; | ||
} | ||
}, { | ||
key: "ipAddresses", | ||
value: function ipAddresses() { | ||
return this.connection.request({ | ||
method: 'GET', | ||
path: "/a/".concat(this.appId, "/ip_addresses") | ||
}).catch(function (err) { | ||
return Promise.reject(err); | ||
}); | ||
} | ||
}]); | ||
@@ -82,0 +92,0 @@ |
{ | ||
"name": "nylas", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.", | ||
@@ -5,0 +5,0 @@ "main": "lib/nylas.js", |
@@ -102,2 +102,17 @@ Nylas Node.js SDK [![Travis build status](https://travis-ci.org/nylas/nylas-nodejs.svg?branch=master)](https://travis-ci.org/nylas/nylas-nodejs) | ||
Getting IP Addresses to Whitelist | ||
----- | ||
To obtain a dynamic list of IP addresses that Nylas might use to connect. | ||
```javascript | ||
const nylas = Nylas.with(ACCESS_TOKEN); | ||
// Get IP Addresses | ||
Nylas.accounts.first() | ||
.then(account => account.ipAddresses()) | ||
.then(response => console.log(response)); | ||
``` | ||
Fetching Messages, Events, Contacts, etc. | ||
@@ -104,0 +119,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
158002
2884
555