Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you pass custom headers to URL calls? #27

Closed
rafaelmagu opened this issue Oct 4, 2023 · 1 comment
Closed

How do you pass custom headers to URL calls? #27

rafaelmagu opened this issue Oct 4, 2023 · 1 comment

Comments

@rafaelmagu
Copy link

Seeing as https://github.com/zacs/ha-gtfs-rt now has support for custom headers, it solved a major blocker I had with connecting to Auckland Transport's API, which requires a header named Ocp-Apim-Subscription-Key with the actual API key for my account. I also need to send Accept: application/x-protobuf alongside the token to ensure the API returns the correct data format.

What support is there in this version to pass custom headers?

@mark1foley
Copy link
Owner

Latest release has support for custom headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants