@quartz/sendgrid-lib
v1.2.0Sendgrid lib
This is a thin library to help us make consistent API requests to the Sendgrid v3 API.
const SendgridLib = require( '@quartz/sendgrid-lib' );
const lib = new SendgridLib( { apiKey: '...' } );
lib.getContactIdByEmail( '[email protected]' )
.then( contactId => console.log( `Got contact ID: ${contactId}` ) );