cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2322
Views
5
Helpful
2
Replies

DNA SPACES - Retrieve Data with API

sboudjel
Cisco Employee
Cisco Employee

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()

 

 

2 Replies 2

vikamurt
Cisco Employee
Cisco Employee

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

vikamurt
Cisco Employee
Cisco Employee
Please reach out to dnaspaces-onboarding@cisco.com and someone will get on a Webex to help you with this.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: