API Documentation: example code is broken
The example code for satnogsdbapiclient generated by OpenAPI is broken (reported in https://community.libre.space/t/satnogs-db-api-documentation/7016/4):
I found a problem following the provided examples when I configure API key authorization with Python3 :
satnogsdbapiclient.configuration.api_key[‘Authorization’] = ‘YOUR_API_KEY’ #I replace of course YOUR_API_KEY with my API Key
returns the error
AttributeError: module ‘satnogsdbapiclient.configuration’ has no attribute ‘api_key’
So I use another solution :
configuration = satnogsdbapiclient.Configuration() configuration.api_key[‘authorization’] = ‘YOUR_API_KEY’
And it works … It can help somebody …