Sample Apps

This section provides references to Firehose API - sample applications on Cisco DevNet and GitHub.com.

Note

You need a valid GitHub account to download files or clone sample repositories.

Cisco DNA Spaces Firehose API - Sample Applications

Sample Application

Explanation

URL

Cisco DNA Spaces Firehose API - Right Now Visitors

The Cisco Spaces - Partner Firehose API provides multiple events, such as device entry, exit, current location, associated profile ,and lots more. A Cisco Spaces partner can integrate the Firehose API data to consume these events to realise many use cases, one use case is to view the current visitors at a location for a specific customer.

The sample application uses the Cisco Spaces - Partner Firehose API events such as, entry, exit, current location and associated profile, builds data pipeline using AWS S3 and AWS Redshift.

This sample application consists of the following two components:

  1. API Server

  2. Client

Right Now Visitors - App
Cisco DNA Spaces Firehose API - Detect and Locate

This sample application consumes the Device Location Update Cisco Spaces - Partner Firehose API event.

This sample application includes the following components:

  1. API Server

  2. Proxy Server

  3. Client

  4. Kafka Consumer Application

Detect and Locate App
Cisco DNA Spaces Firehose API - Activate Partner App

This sample application shows you how to activate the Cisco Spaces partner application.

Cisco Spaces uses OAuth 2.0 to facilitate integration with the Partner dashboard to authenticate customers for App Activation and uses signed JSON Web Token (JWT) authentication to launch the application.

Activate Partner App
Occupancy Sensor App

This sample application visualizes the occupancy sensor data consumed over the Cisco Spaces - Partner Firehose API.

Occupancy Sensor App
Cisco DNA Spaces Firehose API - MongoDB Handler

This sample script helps to store the Cisco Spaces - Partner Firehose API event data in the MongoDB. It is designed to create a simple interface between the Cisco Spaces stream and MongoDB Atlas.

MongoDB Handler