Make headers to a request.

apiMakeHeader(key)

Arguments

key

API key.

Value

A character vector contains host, key, and type.

Examples

flightscanner:::apiMakeHeader("YOUR_API_KEY")
#> X-RapidAPI-Host #> "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com" #> X-RapidAPI-Key #> "YOUR_API_KEY" #> Content-Type #> "application/x-www-form-urlencoded"