DripDotNet 2.0.1

.NET Standard 2.0
Install-Package DripDotNet -Version 2.0.1
dotnet add package DripDotNet --version 2.0.1
<PackageReference Include="DripDotNet" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DripDotNet --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DripDotNet, 2.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DripDotNet as a Cake Addin
#addin nuget:?package=DripDotNet&version=2.0.1

// Install DripDotNet as a Cake Tool
#tool nuget:?package=DripDotNet&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Drip API Wrapper - .NET

This project is no longer under active development and is in need of a maintainer. 
If you would consider maintaining this project please get in touch with us at support@getdrip.com.

An object-oriented .NET wrapper for Drip's REST API v2.0. This implementation supports both synchronous and Task-based asynchronous calling semantics.



Install-Package Leadpages.Drip.DripDotNet

From Binaries

Reference the bin/Debug or bin/Release dll's in your project.

From Source

Clone the repo.

Open "DripDotNet-vs2013.sln" or "DripDotNet-vs2015.sln" in Visual Studio 2013.

Build the DripDotNet-vs2013 or DripDotNet-vs2015 project in Release or Debug mode.

Reference the DripDotNet.dll and RestSharp.dll in your .NET 4.5 project.


Your account ID can be found here.

For private integrations, you may use your personal API key (found here) via the apiKey constructor parameter or via the public properties on the DripClient:

var client = new Drip.DripClient("YOUR_API_KEY", "YOUR_ACCOUNT_ID");


var client = new Drip.DripClient {
	ApiKey = "YOUR_API_KEY",
	AccountId = "YOUR_ACCOUNT_ID"

Just make sure the API Key and Account ID are set prior to using the API.

For public integrations, pass in the user's OAuth token via the AccessToken property:

var client = new Drip.DripClient {
	AccessToken = "YOUR_ACCESS_TOKEN",
	AccountId = "YOUR_ACCOUNT_ID"

Since the Drip client is a flat API client, most API actions are available as methods on the client object. The following methods are currently available with both synchronous and asynchronous signatures (only synchronous shown here):

Action Method
Create/update a subscriber CreateOrUpdateSubscriber(subscriber)
Create/update a batch of subscribers CreateOrUpdateSubscribers(subscribers)
Fetch a subscriber GetSubscriber(idOrEmail)
Subscribe to a campaign SubscribeToCampaign(campaignId, campaignSubscriber)
Unsubscribe UnsubscribeFromCampaign(idOrEmail, campaignId = null)
Apply a tag ApplyTagToSubscriber(email, tag)
Remove a tag RemoveTagFromSubscriber(email, tag)
Track an event TrackEvent(dripEvent)
Track a batch of events TrackEvents(dripEvents)

Actions that require complex arguments take them in the form of a strongly typed Request object.

Note: We do not have complete API coverage yet. If we are missing an API method that you need to use in your application, please file an issue and/or open a pull request. See the official REST API docs for a complete API reference.


var client = new Drip.DripClient("YOUR_API_KEY", "YOUR_ACCOUNT_ID");

// Fetch a subscriber
var resp = client.GetSubscriber("foo@example.com")

Debug.WriteLine("Did it work? " + resp.HasSuccessStatusCode());
//# Did it work? true

var subscriber = resp.Subscribers.First()
Debug.WriteLine("Subscriber Email: " + subscriber.Email);
//# Subscriber Email: foo@example.com


  1. Fork it ( https://github.com/DripEmail/drip-dot-net/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request


In order to run the tests you need to set two environment variables or you will get exceptions.


XUnit is used for testing. Install the xunit test runner to easily run from within the Visual Studio solution.

Since we do not yet support creating campaigns via API there is a TestCampaignId constant in the CampaignTests.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 795 11/2/2018
2.0.0 519 11/2/2018