Skip to content

C# Web API for creating SendGrid email contacts and adding them to a specific marketing list

License

Notifications You must be signed in to change notification settings

nigelainscoe/SendGridCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SendGridCore

SendGridCore is a C# Web API for creating SendGrid email contacts and adding them to a specific marketing list.

It is implemented using Dotnet Core version 1.0

It acts as a C# wrapper for the SendGrid V3 REST API and is easily extensible.

It was originally written to be used in conjunction with an anonymous signup to an email list.

The REST call takes three parameters; email, firstname and lastname e.g.

http://localhost:62209/api/ListManage/?email=jane@example.com&firstname=Jane&lastname=Jones

This will add jane@example.com to the SendGrid contacts if not already present. If already present it will update first name and last name.

It will then add Jane's contact Id to the list configured in the configuration ListToManage

An obvious extension to the code would be to add a method to add Jane into a database as a new member of the list and trigger a welcome email or complete drip campaign.

About

C# Web API for creating SendGrid email contacts and adding them to a specific marketing list

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages