Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Latest commit

 

History

History
16 lines (13 loc) · 883 Bytes

CONFIG.md

File metadata and controls

16 lines (13 loc) · 883 Bytes

configuration

If you are using (or adapting) exampleProg.py, do this:

  • In the folder in which exampleProg.py resides, create a file called 'config.json'

  • Open 'config.json' in a file editor, and insert the following:

    {
        "apikey": "ENTER_APIKEY_HERE",
        "insttoken": "ENTER_INSTTOKEN_HERE_IF_YOU_HAVE_ONE_ELSE_DELETE"
    }
    
  • Paste your APIkey (obtained from http://dev.elsevier.com) in the right place

  • If you don't have a valid insttoken (which you would have received from Elsevier support staff), delete the placeholder text. If you enter a dummy value, your API requests will fail.

The '.gitignore' file lists 'config.json' as a file to be ignored when committing elsapy to a GIT repository, which is to prevent your APIkey from being shared with the world. Make similar provisions when you change your configuration setup.