Authentication
Obtain API-Key
An API key is required to use the OpenADB API. This can be obtained free of charge after registering on the OpenADB website (https://openadb.dgfi.tum.de/register/). After registration, the API key can be created and downloaded in the user profile (https://openadb.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 openadb.dgfi.tum.de login username password 1F2E692BF71769F7C510B8CDB56CF576E077724021C1CC082D04B76FD31324DA
import openadbapi
# Initialize Class
openadb_api = openadbapi.API()
Adding API key directly in script
import openadbapi
# Initialize Class
openadb_api = openadbapi.API(api_key="1F2E692BF71769F7C510B8CDB56CF576E077724021C1CC082D04B76FD31324DA")