7 Tweets 20 reads Apr 13, 2023
How to set environment variables into the header inside RapidAPI Client for VS Code?
Thread πŸ§΅πŸ‘‡
The following small tutorial will show you how to associate an environment variable (RapidAPI API key) with the variable used in the HTTP header.
Of course, the environment variable must be defined before you can use it.
Here is the example of the "x-rapidapi-key" environment variable defined.
Let me show you how to use it.
1️⃣ Click "Headers" in the middle panel
2️⃣ For the header name, enter "x-rapidapi-key"
To enter the environment variable, you have two options:
1. Enter "{" into the Header value field.
2. Right-click into the Header value field.
In both cases, the popup menu will appear.
From the list, select "Environment Variable.”
To select the actual environment variable, click on the "Environment Variable" tag you specified in the previous step.
Another popup menu will appear with all the environment variables defined.
Select "x-rapid-api" key.
We hope you enjoyed this short tutorial.
If you found this thread useful, follow @Rapid_API πŸ™πŸ’™

Loading suggestions...