Rails - How to add contacts to SendGrid marketing campaigns via API
问题 I need to make HTTP get and post requests with SendGrid to add contacts to our account, however there doesn't seem to be a gem for their email marketing functionality. It boils down to making a few requests however I can't get past their authentication step. They say to do this curl -X "GET" "https://api.sendgrid.com/v3/templates" -H "Authorization: Bearer Your.API.Key-HERE" -H "Content-Type: application/json" And using the Rest-Client gem I'm trying to make the authentication request like so