shahriarhossain / MailChimp.Api.Net

MailChimp v 3.0 .Net wrapper
MIT License
23 stars 16 forks source link

Multiple MailChimp API Keys #44

Open spyguyhi opened 8 years ago

spyguyhi commented 8 years ago

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?

shahriarhossain commented 8 years ago

@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.

spyguyhi commented 8 years ago

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 notifications@github.com 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

quirobin commented 7 years ago

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.

tbraz commented 7 years ago

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 ....