net3000.mailchimp 1.0.0

dotnet add package net3000.mailchimp --version 1.0.0
                    
NuGet\Install-Package net3000.mailchimp -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="net3000.mailchimp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net3000.mailchimp" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="net3000.mailchimp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add net3000.mailchimp --version 1.0.0
                    
#r "nuget: net3000.mailchimp, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package net3000.mailchimp@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=net3000.mailchimp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=net3000.mailchimp&version=1.0.0
                    
Install as a Cake Tool

Net3000 MailChimp Library

A comprehensive C# library for integrating with the MailChimp API, designed specifically for Net3000 solutions.

Features

  • Email List Management: Create, manage, and organize email lists
  • Subscriber Management: Add, update, and remove subscribers from lists
  • Campaign Management: Create and send email marketing campaigns
  • Segmentation: Manage audience segments for targeted campaigns
  • Async/Await Support: Modern asynchronous programming patterns
  • Configuration Integration: Seamless integration with .NET configuration systems

Installation

Install via NuGet Package Manager:

Install-Package net3000.mailchimp

Or via .NET CLI:

dotnet add package net3000.mailchimp

Quick Start

Basic Setup

using Net3000.MailChimp.Services;

// Initialize with API key
var mailChimpService = new MailChimpService("your-mailchimp-api-key", "default-list-id");

// Or initialize with configuration
var mailChimpService = new MailChimpService(configuration);

Managing Lists

// Get all lists
var lists = await mailChimpService.GetListsAsync();

// Create a new list
var newList = new List
{
    Name = "My Newsletter",
    // ... other properties
};
var listId = await mailChimpService.CreateListAsync(newList);

Managing Subscribers

// Subscribe a single email
var result = await mailChimpService.SubscribeAsync("user@example.com", "John", "Doe", "list-id");

// Subscribe with merge fields
var mergeFields = new Dictionary<string, string>
{
    {"COMPANY", "Net3000"},
    {"CITY", "Toronto"}
};
await mailChimpService.SubscribeAsync("user@example.com", "John", "Doe", "list-id", mergeFields);

// Bulk subscribe
var emails = new List<string> { "user1@example.com", "user2@example.com" };
var results = await mailChimpService.AddNewMembersAsync("list-id", emails);

// Unsubscribe
await mailChimpService.UnsubscribeAsync("user@example.com", "list-id");

Campaign Management

// Create a campaign
var campaign = new Campaign
{
    // ... campaign properties
};
var campaignId = await mailChimpService.CreateCampaignAsync(campaign);

// Send campaign
await mailChimpService.SendCampaignAsync(campaignId);

Configuration

The library supports configuration through .NET's IConfiguration system:

{
  "MailChimp": {
    "ApiKey": "your-api-key",
    "DefaultListId": "your-default-list-id"
  }
}

Requirements

  • .NET 9.0 or later
  • MailChimp account and API key
  • Valid MailChimp.Net.V3 package (automatically installed)

License

This library is licensed under the MIT License. See the LICENSE.md file for details.

Support

For support and questions:

Contributing

This library is part of the Net3000 ecosystem and is primarily maintained for Net3000 applications.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on net3000.mailchimp:

Package Downloads
net3000.mailingList

Mailing list management library for Net3000.ca applications. Subscriber management, campaigns, multi-platform integrations (SendGrid, MailChimp, Constant Contact), delivery tracking, and audience contact sources.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 101 7/9/2026

Initial release of Net3000 MailChimp library with email marketing API integration.