This example shows how to initialise the library and retrieve a history of devices over the last two hours.
In order to use this library, you will need two environment variables:
- DNAS_REGION - if you are in the USA, set to "io", elsewhere, set to "eu". - DNAS_API_KEY - set this to your API Key from DNA Spaces: https://developer.cisco.com/docs/dna-spaces/#!getting-started/getting-started
How to run:
go run ./examples/history/main.go