xxavier
05/11/2022, 2:15 PMrun_histograms:
type: dqm_playground_ds.extras.datasets.tuned_API_dataset.TunedAPIDataSet
url: https://xxx/
credentials: dqm_playground_token
headers: credentials
credentials.yml
dqm_playground_token:
- Authorization: Token <token>
tuned_API_dataset.py (similar to kedro's api_dataset.py)
python3
auth = credentials or auth
# Added the following three lines :)
if headers == "credentials":
auth = None
headers = credentials[0]
Not great, not terrible. 🙂 Thanks again!