Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After opening Postman, you want to import the environment variables file and the collections that contains the sample queries

...

Our sample file uses environment variable so that you can pass in URL and access token for different queries instead of entering them manually for each query. Here’s We created the basic environment file we created for you to get started.

Further Postman documentation on how to setup, manage and access environment variable for your queries can be found here.

...

  1. Click on Collections

  2. Import the *.postman_collection.json. You will see the GraphQL collection added to the list.

...

Running the Queries

Before running the query, you need to set your environment. Click on the “No environment” drop down as shown below and select the environment file you imported.

...

For each query, the value for the {{base_url}} is https://api.skylight.earth. Note: we recommend to set Since {{base_url}} as is an environment variable so that , you can pass in this variable or any variables such automatically.

To generate an access token, run the getToken query first. This token will expire after 24 hours. Do not attempt to generate a new session while the token is active. The platform doesn't allow two active sessions open for the same user and doing so will end the active session. For the following queries, the access_token will be automatically passed on. To see the automation used to run the access_token, see the Tests tab. The username and password in the getToken query are the same username and password you use to log into the Skylight app. If you do not have a Skylight login, please contact us to request an account.

...