Last active
August 29, 2015 14:01
-
-
Save brandonmwest/1bec99fd56d8b3cc1227 to your computer and use it in GitHub Desktop.
SendGrid web api v3 curl example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -d '{"name":"example_name"}' -H "Content-Type: application/json" -u sendgrid_username https://api.sendgrid.com/v3/templates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -d '{"name":"pork", "subject":"bacon <%subject%>", "html_content":"<%body%>", "plain_content":"<%body%>"}' -H "Content-Type: application/json" -u sendgrid_username https://api.sendgrid.com/v3/templates/60414495-6787-441b-8b08-3979499bba7a/versions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment