I can’t figure out how to add “Authorization”: “Key” to the header in http_get.
Options are passed to http_open/3. There is an authorization(Term)
option that should normally do the trick. If somehow you need something else, request_header('Authorization'=Key)
will do. This allows passing any header and value.
What you describe sounds like bearer authorization, but not quite.