Basic Authentication using the .net wrapper

I'm kind of confused. 

Below are my lines of code

IEnumerable<createsend_dotnet.BasicTemplate> basictemplate;

createsend_dotnet.Client CMClient = new createsend_dotnet.Client("04a004bbf7bee1947123af1102b60a6f");

basictemplate = CMClient.Templates();

the error that is returning is "The CreateSend API responded with the following error - 50: Must supply a valid HTTP Basic Authorization header"

How do I send the authorization header in .net c#.  thanks.

jamesd jamesd, 7 years ago

You'll need to set your API key using an appSettings entry in your config file. See the createsend-dotnet README for an example of how this is done.

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free