Versions Compared

Key

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

...

Running the Query

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

Importing Environment Variables

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 the basic environment file we created for you to get started.

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

To import the environment variables file:

  1. Click on Environments tab

  1. Import the *.postman_environment.json

You will see the {{base_url}} and {{access_token}}

...


Importing the Collection

  1. Click on Collections

  2. Import the *.postman_collection.json.

You will see the GraphQL collection added to the list.

...

...

Running the Queries

For each query, the value for the {{base_url}} is https://api.skylight.earth. Note: we recommend to set {{base_url}} as an environment variable so that you can pass in this variable or any variables automatically. Documentation on how to setup, manage and access environment variable for your queries can be found heresuch 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.

...