MailChimp.Net.V3
5.4.1
dotnet add package MailChimp.Net.V3 --version 5.4.1
NuGet\Install-Package MailChimp.Net.V3 -Version 5.4.1
<PackageReference Include="MailChimp.Net.V3" Version="5.4.1" />
paket add MailChimp.Net.V3 --version 5.4.1
#r "nuget: MailChimp.Net.V3, 5.4.1"
// Install MailChimp.Net.V3 as a Cake Addin
#addin nuget:?package=MailChimp.Net.V3&version=5.4.1
// Install MailChimp.Net.V3 as a Cake Tool
#tool nuget:?package=MailChimp.Net.V3&version=5.4.1
MailChimp.Net - A Mail Chimp 3.0 Wrapper
License
MailChimp.Net is licensed under the MIT license.
Quick Start
Install the NuGet package from the package manager console:
Install-Package MailChimp.Net.V3
Using it in code
using MailChimp.Net;
using MailChimp.Net.Interfaces;
IMailChimpManager manager = new MailChimpManager(apiKey); //if you have it in code
<add key="MailChimpApiKey" value="apiKEY" />
IMailChimpManager manager = new MailChimpManager(); //if you have it in config
Hint: MailChimp needs at least TLS 1.2. To use this library you have to set TLS 1.2 in ServicePointManager
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol | SecurityProtocolType.Tls12;
Examples
// Instantiate new manager
IMailChimpManager mailChimpManager = new MailChimpManager(apiKey);
Getting all lists:
var mailChimpListCollection = await this.mailChimpManager.Lists.GetAllAsync().ConfigureAwait(false);
Getting 50 Lists:
var mailChimpListCollection = await this.mailChimpManager.Lists.GetAllAsync(new ListRequest
{
Limit = 50
}).ConfigureAwait(false);
Getting Users from List:
var listId = "TestListId";
await this.mailChimpManager.Members.GetAllAsync(listId).ConfigureAwait(false);
Adding New User To List
var listId = "TestListId";
// Use the Status property if updating an existing member
var member = new Member { EmailAddress = $"githubTestAccount@test.com", StatusIfNew = Status.Subscribed };
member.MergeFields.Add("FNAME", "HOLY");
member.MergeFields.Add("LNAME", "COW");
await this.mailChimpManager.Members.AddOrUpdateAsync(listId, member);
Updating An Existing User
// Get reference to existing user if you don't already have it
var listId = "TestListId";
var members = await this.mailChimpManager.Members.GetAllAsync(listId).ConfigureAwait(false);
var member = members.First(x => x.EmailAddress == "abc@def.com");
// Update the user
member.MergeFields.Add("FNAME", "New first name");
member.MergeFields.Add("LNAME", "New last name");
await this.mailChimpManager.Members.AddOrUpdateAsync(listId, member);
Adding/Removing a Tag From a User
Tags tags = new Tags();
tags.MemberTags.Add(new Tag() { Name = "Awesome Person", Status = "active" });
await this.mailChimpManager.Members.AddTagsAsync(listId, "abc@def.com", tags);
To remove the tag, use "inactive" as the Status.
Status
Progress on full implementation
- API 100%
- Authorized Apps 100%
- Automations 100%
- Batch Operations 100%
- Campaigns 100%
- Campaign Content 100%
- Campaing Feedback 100%
- Campaign Folders 100%
- Campaing Send Checklist 100%
- Conversations 100%
- Conversations Messages 100%
- ECommerce Stores 100%
- File Manager Files 100%
- File Manager Folders 100%
- Lists 100%
- List Abuse Reports 100%
- List Activity 100%
- List Clients 100%
- List Growth History 100%
- List Interest Categories 100%
- List Members 100%
- List Segments 100%
- List Web Hooks 100%
- Template Folders 100%
- Templates 100%
- Template Default Content 100%
- Reports 100%
- Report Click Reports 100%
- Report Domain Performance 100%
- Report EepURL Reports 100%
- Report Email Activity 100%
- Report Location 100%
- Report Sent To 100%
- Report Sub-Reports 100%
- Report Unsubscribes 100%
- ECommerce Carts 100%
- ECommerce Customers 100%
- ECommerce Orders 100%
- ECommerce Order Lines 100%
- ECommerce Products 100%
- ECommerce Product Variants 100%
Total 100%
Contributors
This project exists thanks to all the people who contribute. [Contribute]. <a href="https://github.com/brandonseydel/MailChimp.Net/graphs/contributors"><img src="https://opencollective.com/mailchimp/contributors.svg?width=890&button=false" /></a>
Backers
Thank you to all our backers! 🙏 [Become a backer]
<a href="https://opencollective.com/mailchimp#backers" target="_blank"><img src="https://opencollective.com/mailchimp/backers.svg?width=890"></a>
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
<a href="https://opencollective.com/mailchimp/sponsor/0/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/0/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/1/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/1/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/2/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/2/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/3/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/3/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/4/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/4/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/5/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/5/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/6/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/6/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/7/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/7/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/8/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/8/avatar.svg"></a> <a href="https://opencollective.com/mailchimp/sponsor/9/website" target="_blank"><img src="https://opencollective.com/mailchimp/sponsor/9/avatar.svg"></a>
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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1 |
.NET Framework | net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen30 tizen40 tizen60 |
Universal Windows Platform | uap uap10.0 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETFramework 4.5
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.7.2
- Microsoft.Extensions.Configuration (>= 3.1.8)
- Microsoft.Extensions.DependencyInjection (>= 3.1.8)
- Microsoft.Extensions.Http (>= 3.1.8)
- Microsoft.Extensions.Options (>= 3.1.8)
- Newtonsoft.Json (>= 12.0.3)
-
.NETStandard 1.3
- Microsoft.Extensions.Configuration (>= 1.1.2)
- Microsoft.Extensions.Options (>= 1.1.2)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 12.0.3)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration (>= 3.1.8)
- Microsoft.Extensions.DependencyInjection (>= 3.1.8)
- Microsoft.Extensions.Http (>= 3.1.8)
- Microsoft.Extensions.Options (>= 3.1.8)
- Newtonsoft.Json (>= 12.0.3)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on MailChimp.Net.V3:
Package | Downloads |
---|---|
N3O.Umbraco.Newsletters.Mailchimp
TODO |
|
Kartris
Kartris is a free, open source cart system optimized for performance and capable of handling 1,000,000+ SKUs out of the box |
|
USNSiteBuilder.Core
Core library for uSkinned Site Builder for Umbraco Version 11 |
|
FenixAlliance.ABS.Integrations.MailChimp
Application Component for the Alliance Business Suite. |
|
UmbracoForm.MailChimp.WorkFlow
Update package for umbraco CMS v8.4.1 * Umbraco Forms v8.1.2 * Mailchimp Integration WorkflowType |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.4.1 | 5,311 | 3/5/2023 |
5.4.0 | 1,158 | 3/2/2023 |
5.3.1 | 441,689 | 10/25/2021 |
5.3.0 | 452 | 10/25/2021 |
5.2.0 | 289,465 | 4/7/2021 |
5.1.0 | 79,529 | 12/30/2020 |
5.0.0 | 73,974 | 11/2/2020 |
4.2.1 | 631,810 | 9/17/2019 |
4.2.0 | 33,317 | 7/31/2019 |
4.1.0 | 105,513 | 5/19/2019 |
4.0.0 | 54,037 | 3/28/2019 |
3.5.0 | 251,200 | 12/6/2018 |
3.4.0 | 53,516 | 10/2/2018 |
3.3.0 | 89,951 | 7/14/2018 |
3.2.0 | 191,240 | 3/11/2018 |
3.1.1-alpha | 18,376 | 11/12/2017 |
3.1.0-alpha | 766 | 11/11/2017 |
3.0.0 | 91,975 | 9/4/2017 |
2.1.0 | 79,383 | 7/14/2017 |
2.0.0 | 41,539 | 6/6/2017 |
1.9.5 | 50,941 | 3/30/2017 |
1.9.1 | 33,907 | 2/26/2017 |
1.9.0 | 25,543 | 2/13/2017 |
1.8.5 | 28,519 | 12/18/2016 |
1.8.0 | 18,769 | 11/11/2016 |
1.7.5 | 69,267 | 9/22/2016 |
1.7.1 | 9,939 | 8/30/2016 |
1.7.0 | 2,248 | 8/22/2016 |
1.6.7 | 10,950 | 7/24/2016 |
1.6.6 | 2,023 | 7/15/2016 |
1.6.5 | 1,201 | 7/14/2016 |
1.6.0 | 1,592 | 7/11/2016 |
1.5.4 | 7,773 | 6/22/2016 |
1.5.3 | 1,996 | 6/14/2016 |
1.5.2 | 1,202 | 6/13/2016 |
1.5.1 | 1,085 | 6/8/2016 |
1.5.0 | 2,339 | 5/31/2016 |
1.4.5 | 1,575 | 5/9/2016 |
1.4.4 | 976 | 5/5/2016 |
1.4.3 | 927 | 5/5/2016 |
1.4.2 | 5,832 | 5/2/2016 |
1.4.1 | 1,460 | 4/20/2016 |
1.4.0 | 1,540 | 4/19/2016 |
1.3.1 | 1,198 | 4/16/2016 |
1.3.0 | 1,358 | 3/23/2016 |
1.2.6 | 17,530 | 3/10/2016 |
1.2.5 | 1,478 | 1/24/2016 |
1.2.0 | 1,199 | 1/13/2016 |
1.0.7.1 | 1,063 | 1/6/2016 |
1.0.7 | 996 | 1/6/2016 |
1.0.6 | 953 | 1/5/2016 |
1.0.5 | 974 | 1/4/2016 |
1.0.4 | 950 | 12/31/2015 |
1.0.3 | 1,065 | 12/22/2015 |
1.0.1 | 1,233 | 12/17/2015 |
1.0.0.23958 | 1,377 | 12/16/2015 |
1.0.0.20990 | 1,057 | 12/22/2015 |
1.0.0 | 1,379 | 12/16/2015 |
.NET Standard 1.3
.NETFramework 4.5