Note about query parameters and api keys

This commit is contained in:
Justin Cooper 2024-07-30 13:48:22 -05:00 committed by GitHub
parent 01e83d13dd
commit c9b52c3acc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,3 +34,5 @@ api = Adafruit::IO::Client.new key: api_key, username: username
When making HTTP requests to Adafruit IO, you can include the API key as a query parameter named `x-aio-key` or as a request header named `X-AIO-Key`. In both cases, "X-AIO-Key" is case insensitive.
**NOTE**: if you regenerate your AIO key, your old key will be immediately invalidated, so you'll have to replace it in any scripts or sketches where it is in use.
**NOTE**: it is a best practice to avoid including your API key in the URL as a query parameter. Some situations may require this, but try to avoid it if you can.