sendgrid_contact_persist

A microservice for persisting SendGrid contacts.

Usage

gem install sendgrid_contact_persist

You need to set SENDGRID_API_KEY on your environment for api authorization. Once you have your key set you can call the service.

Service API

You can pass either a single email or a list of emails to persist:

SendgridContactPersist "[email protected]"
SendgridContactPersist ["[email protected]", "[email protected]"]

You can also pass custom fields to be applied to all of the emails you are persisting. You must define the custom fields on Sendgrid's Admin Marketing interface before using them here.

SendgridContactPersist "[email protected]", foo: :bar