Import environment file
Objective
On this page, you will import the Postman Environment File. This file contains a number of global variables that will be utilized within various API calls you will make during other labs throughout the bootcamp.
Import environment file
-
Download the AJO Bootcamp.postman_environment.json file:
Download File — AJO Bootcamp.postman_environment.json
-
Launch Postman on your local machine.
-
If necessary, switch to the Workspace you are using for these labs (if you’re using a Workspace at all) and click on the Import button.
-
Paste the local URL of the AJO Bootcamp.postman_environment.json file into the import modal text box or drop it into the import dialog box. This should trigger an automatic import
-
Once imported, validate that the environment exists by clicking on the Environments tab in the left sidebar. You see that the AJO Bootcamp environment is now available to you.
Set environment variables
Postman was designed for testing and interacting with APIs. However, we’re using it to simulate AEP Web SDK hits from a browser or for server-side real-time data collection calls. While these are still API calls in the strictest sense of the term, they aren’t typical API calls that require things like authorization tokens in the header. The environment variables in these labs are mainly used for variables in URL paths (with one being used in a header).
-
If necessary, click on the Environments tab in the left sidebar of Postman
-
Click on the AJO Bootcamp environment file. You see some values that you need to fill in
-
Skip the DATASTREAM_CONFIG value for now. You will create a datastream configuration in a later lab.
-
Update the EDGE_REGION field with the region code that is closest to where you are physically located for this bootcamp, using the table below as a look-up.
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 6-row-2 Region Region Code Western US or2 Eastern US va6 Europe irl1 Australia aus3 Japan jpn3 Asia spg3 When done, your environment file should look similar to this:
-
You now need to save your environment variables; however, there is no save button in the Postman UI. Use the Windows or Mac hot keys for saving (ctrl+s on Windows, for example). You know your changes have been saved when you see a Changes saved message in the lower-right-hand side of the Postman UI: