I had been using sendgrid to send emails for quite some time.  I noticed sendgrid now had a new API, version 3, and it uses dynamic templates.

I decided to use the newer dynamic templates, but struggled somewhat getting the API to work.

I created a PHP wrapper class which you can access on github here.

I hope it saves you time.