03-23-2021 06:20 AM - last edited on 01-17-2024 01:41 PM by Sabah Kadir
Hi Team,
We are working on an internal project links to DNA SPACES.
We try to retrieve data using the DNA SPACES API.
We connect Meraki with DNA Spaces using the API key
The Connection to the Cisco Meraki CBS looks complete on the dashboard where we have data.
But we can’t retrieve data with API. We have an empty list return. And a successful 200 code.
We tried to solve the problem internally, without success.
Do you have any suggestions or contact of a specialist to solve that.
Thank you for your help.
Sabrina
where :
config['dna_spaces_url'] = "https://dnaspaces.eu/api/location/v1/history/clients"
The token has been intentionally deleted
#File Stage0.py #Author: Sabrina Boudjelti #Date: 20/03/2021 import requests from requests.auth import HTTPBasicAuth import json from env import config #Definition of variables DNAS_KEY=config['token_dnaspaces'] DNAS_URL = config['dna_spaces_url'] KEY_ORG = "/organizations" #KEY_ORG = "/clients" def clients(): headers = { 'Content-Type': 'application/json', 'Authorization': f'Bearer {DNAS_KEY}' } response = requests.request("GET", DNAS_URL, headers=headers) print() print(response.status_code) #org = response.json() #print(org) #headers = {Content-type: "application/json", Authorization: "Bearer eyJhbGciO...."} #response = requests.request("GET", getURL, headers=headers) if __name__ == "__main__": clients()
03-23-2021 06:37 AM
Hi,
DNA Spaces Location API is provided primarily for customers migrating from CMX. It does not support Meraki networks.
DNA Spaces provides a newer Firehose API that does work across all types of networks including Meraki. It is a streaming API so is very different from traditional REST APIs. It has support for all the new capabilities provided by DNA Spaces including Location Hierarchy, Device & User presence, BLE IoT telemetry, Meraki Cameras, WebEx Telepresense events etc.
To use it you need to sign up as a partner at https://partners.dnaspaces.io/partner
Once approved you will get access to Firehose API and documentation related to it.
Vikas
01-17-2024 02:39 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide