MailChimp.Api.Net icon indicating copy to clipboard operation
MailChimp.Api.Net copied to clipboard

Multiple MailChimp API Keys

Open spyguyhi opened this issue 8 years ago • 4 comments

In the Wiki page for Initial Setup it says to add a this line to the config file:

<add key="MailChimpApiKey" value="--Your_MailChimp_APIKey--" />

What if we have multiple MailChimp API Keys? In this wrapper's current state, it does not appear as though I could create multiple config entries with different API Keys and then specify which key to use when calling your methods. We currently have 2 MailChimp API Keys and have an application built with the .Net Wrapper for MailChimp 2.0. It is possible we may acquire more keys in the future for different departments. I don't think it would be feasible for us to create multiple applications on a server in order to work with different MailChimp API Keys.

Is this something that will be in future releases?

spyguyhi avatar Aug 23 '16 00:08 spyguyhi

@spyguyhi : sorry for late response, didn't notice your message earlier. Right now it does not support multi api key, but little tweaking on the code can let you use multi api key... Are you still interested implementing this wrapper. Then I will work on this.

shahriarhossain avatar Aug 31 '16 17:08 shahriarhossain

Hello Shahriar,

Yes, we are definitely interested in using this API wrapper to move forward with MailChimp API 3.0. If you could make this happen I think it would be an awesome enhancement. ---- Shahriar Hossain [email protected] wrote:

@spyguyhi : sorry for late response, didn't notice your message earlier. Right now it does not support multi api key, but little tweaking on the code can let you use multi api key... Are you still interested implementing this wrapper. Then I will work on this.

You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/shahriarhossain/MailChimp.Api.Net/issues/44#issuecomment-243833328

spyguyhi avatar Sep 02 '16 01:09 spyguyhi

Just upgrading to the V3 api and hence using this wrapper. Multiple Mailchimp API keys are essential for us as we allow our users to connect their own MailChimp accounts with OAuth2.

quirobin avatar Jan 10 '17 08:01 quirobin

Having the key forced to be in the app.config/web.config is a very poor design choice. Please, give us a ConfigurationClass so we can have the keys coming from other sources ....

tbraz avatar Apr 24 '17 10:04 tbraz