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

feat(config): set environment by parameter and envar #87

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

acostapazo
Copy link
Contributor

No description provided.

@acostapazo
Copy link
Contributor Author

Config

Configure your credentials with Config class

from alice import Config

config = Config(api_key="<YOUR-API-KEY>")

By default, this configure the production environment, if you
want to use the sandbox environment, you have two options:

  • Add environment parameter on Config
    from alice import Config, Environment
    
    config = Config(api_key="<YOUR-API-KEY>", environment=Environment.SANDBOX)
  • Or, just export the ALICE_ENVIRONMENT environment variable
    export ALICE_ENVIRONMENT=sandbox

@acostapazo acostapazo merged commit 3a53674 into main Sep 6, 2023
8 checks passed
@acostapazo acostapazo deleted the feature/configure-environment branch September 6, 2023 07:23
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

Successfully merging this pull request may close these issues.

2 participants