Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any method to change api key dynamically? #25

Open
rycastaneda opened this issue Jul 24, 2014 · 3 comments
Open

Is there any method to change api key dynamically? #25

rycastaneda opened this issue Jul 24, 2014 · 3 comments

Comments

@rycastaneda
Copy link

Something like MailChimpWrapper::setApiKey();

@rycastaneda rycastaneda changed the title Is there a method to change api key dynamically.] Is there a method to change api key dynamically? Jul 24, 2014
@rycastaneda rycastaneda changed the title Is there a method to change api key dynamically? Is there any method to change api key dynamically? Jul 24, 2014
@hugofirth
Copy link
Owner

@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

@rycastaneda
Copy link
Author

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.

@fahrulazmi
Copy link

hey @rycastaneda i did it by calling Config::set('mailchimp::apikey', $apikey); before calling any method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants