ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
181 stars 74 forks source link

Make API key header configurable #216

Open jbiggsets opened 6 months ago

jbiggsets commented 6 months ago

Setting the API key header name to X-CKAN-API-Key seems problematic. For example, the data.gov API uses the x-api-key as the HTTP header name.

This PR allows users to pass a dictionary instead of just an API key, specifying both the API key and the header name.