1.2.0 • Published 4 years ago
@quartz/sendgrid-lib v1.2.0
Sendgrid 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( 'annika@example.com' )
.then( contactId => console.log( `Got contact ID: ${contactId}` ) );