laravel-mailchimp
laravel-mailchimp copied to clipboard
Is there any method to change api key dynamically?
Something like MailChimpWrapper::setApiKey();
@rycastaneda No there isn't - could you not set it the same way you would any other config value however? http://laravel.com/docs/configuration
I tried testing it but to no avail, it seems that its creating an instance based on the passed ApiKey. Changing the config value does not create a new instance.
hey @rycastaneda i did it by calling Config::set('mailchimp::apikey', $apikey); before calling any method.