/sendsync

Syncronize sengrid templates with a git repository

Primary LanguageGoApache License 2.0Apache-2.0

Sendsync

Sendsync is a cli written in golang for interacting with the Sendgrid API. We use it mainly to GET and POST templates and versions.

Installation

Run

go build
go install

This will create a binary executable.

Usage

First, export your SENDGRID_API_KEY.

To fetch all templates:

sendsync get templates

To publish a specific template:

sendsync apply -f templates/name_of_the_template/template.json

Testing

Run

go test sendsync/cmd

Questions

Have a question? Contact us in github@buda.com