github nylas/nylas-nodejs v6.3.0

latest releases: v7.5.2, v7.5.1, v7.5.0...
2 years ago

This new release of the Nylas Node SDK brings a few of features as well as a couple of fixes.

Release Notes

Added

  • Add support for revoking a single access token
  • Improve Outbox job status support
  • Support Setting Redirect On Error in Authenticate URL Config (#338)

Fixed

  • Fix issue where an empty response body could trigger a JSON deserialization error
  • Remove usage of unreliable node-fetch response.size (#339)

New Contributors

  • @myleslinder made their first contributions with Support Setting Redirect On Error in Authenticate URL Config (#338) and Fix Outbox JSON Parsing Error (#339)

Using New Features

Revoking a single access token

const Nylas = require('nylas');
Nylas.config({clientId: 'clientId', clientSecret: 'clientSecret'});

Nylas.revoke("ACCESS_TOKEN_TO_REVOKE");

Improved Outbox Job Status

To get an outbox job status by ID, it's the same as you would get any Job Status, but in the background the SDK will identify if the job status is an outbox job status, and if so it will return the correct type:

const Nylas = require('nylas');
Nylas.config({clientId: 'clientId', clientSecret: 'clientSecret'});
const nylas = Nylas.with('access_token');

const jobStatus = nylas.jobstatuses.find("outbox-job-status-id");

Don't miss a new nylas-nodejs release

NewReleases is sending notifications on new releases.