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

API Keys #42

Open
linsalrob opened this issue Jun 6, 2019 · 1 comment
Open

API Keys #42

linsalrob opened this issue Jun 6, 2019 · 1 comment

Comments

@linsalrob
Copy link
Collaborator

How do you insert the api_key into edirect?

If you are piping between commands (e.g. an epost and then an esummary) does the key need to be supplied to both commands?

@vkkodali
Copy link

vkkodali commented Jun 6, 2019

does the key need to be supplied to both commands?

You can export the NCBI_API_KEY first to avoid providing the api key each time as follows:

export NCBI_API_KEY='abcdef012345'

Better yet, if you can, just add that line to your .bashrc file, go through a login cycle and the api key should be available to all EDirect commands all the time.

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

2 participants