Skip to content

azcoov/DripSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DripSharp

C# Wrapper for Drip Webhooks https://www.getdrip.com/docs/webhooks

Usage

Create a controller action to recieve the Drip webhook and use DripSharp to parse the JSON payload:

[HttpPost]
public ActionResult DripEvent()
{
	var e = Drip.Parse(Request.InputStream);
	string id = e.Data.Object["id"].Value.ToString();
	string type= e._event;
	string email = e.Data.Object["email"].Value;
	
	//Save to the db
	Save(id, type, email);

	return new HttpStatusCodeResult((int)HttpStatusCode.OK);
}

About

C# Wrapper for Drip Webhooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages