Some My Experiences

Header Ads

Thursday 17 March 2016

How To Use MailChimp API V3.0 in C#

 To use MailChimp API V3.0 in C# language, do the steps below:
  1. Create C# Web Form Project called 'MailChimpV3'.
  2. Add Json.NET Framework to project Reference. Here I use  Json 8.0.2 version from Newtonsoft.
  3. Create folder called `MailChimp` on the project.
  4. Add C# class called `MailChimpManager.cs` in the `MailChimp` folder, location would be like `\MailChimpV3\MailChimp\MailChimpManager.cs`. Then copy the code below.

List in C#

List Class defined in System.Collections.Generic Namespace in mscorlib.dll assembly, it provide methods to search, sort and manipulate lists. Elements in List can be accessed using an integer index, index start from 0 (zero-based). We can create object list from this class with syntax :
List<T>
where T is The type of elements in the list, example : List<int>.