Calling MailChimp API v3.0 with .Net
I'm trying to access our MailChimp account via the new 3.0 REST API. I've done the following: using(var http = new HttpClient()) { var creds = Convert.ToBase64String(Encoding.ASCII.GetBytes("username:mailchimpapikey-us1")); http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", creds); string content = await http.GetStringAsync(@"https://us1.api.mailchimp.com/3.0/lists"); Console.WriteLine(content); } However, when I run this code, I get a 401 error with the following json details: {"type":"http://kb.mailchimp.com/api/error-docs/401-api-key-invalid","title":"API Key