Authentication
Obtain API-Key
An API key is required to use the EDC-API. This can be obtained free of charge after registering on the EDC website (https://edc.dgfi.tum.de/register/). After registration, the API key can be created and downloaded in the user profile (https://edc.dgfi.tum.de/en/profile/).
Apply API-Key
There are two ways to use the API key when using the API:
Adding API key to ~/.netrc (recommended)
machine edc.dgfi.tum.de login username password 1F2E692BF710B8CF576E077724021C1CC08DB56C2D04B76F769F7C51D31324DA
import edcapi
# Initialize Class
edc_api = edcapi.API()
Adding API key directly in script
import edcapi
# Initialize Class
edc_api = edcapi.API(api_key="1F2E692BF710B8CF576E077724021C1CC08DB56C2D04B76F769F7C51D31324DA")