To speed up working with the data returned by the Meridian Maps API I used this Python script to store the response locally in a file.
This note assumes you have some basic knowledge of using python. Check out these resources that may help you to get started: Python and REST APIs 1: Building a work environment, Python and REST APIs 2: GET Data and Python and REST APIs 3: POST Data.
NOTE: It's important to understand the API as much as possible before using it beyond the scope of this article. Data can be overwriten with the API and so caution should be taken. Also, Only documented APIs are supported by Aruba. https://docs.meridianapps.com/article/369-rest-api
The Meridian APIs used in this project are:
Locations Maps API Endpoint https://docs.meridianapps.com/article/484-using-the-maps-api
Break It Down:
Now that you have a file including the data from the Maps API you can use this as a locally cached version for speedier access in other Python scripts. Accessing the data in this way is much faster than calling on the API every time you need it.
For another example of saving data locally like this check out Using the Meridian API: Caching Beacons Data in a file and Using the Meridian API: Storing the JSON Output (Local Caching).
Let me know in the comments below if you would like to see any other examples.
At Aruba, we believe that the most dynamic customer experiences happen at the Edge. Our mission is to deliver innovative solutions that harness data at the Edge to drive powerful business outcomes.
© Copyright 2021 Hewlett Packard Enterprise Development LPAll Rights Reserved.