# kloudspot-analytics-node-sdk

> NodeJS SDK for Kloudspot Analytics

Latest version **1.0.11** (published 2024-10-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install kloudspot-analytics-node-sdk
pnpm add kloudspot-analytics-node-sdk
yarn add kloudspot-analytics-node-sdk
bun add kloudspot-analytics-node-sdk
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2024-10-23 |
| First published | 2020-02-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.1 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Uday Pyda |
| Maintainers | udaykloudspot |
| Keywords | Analytics, Kloudspot |

## Links

- npm: https://www.npmjs.com/package/kloudspot-analytics-node-sdk
- npm.io page: https://npm.io/package/kloudspot-analytics-node-sdk

## Dependencies (4)

- [moment](https://npm.io/package/moment.md) ^2.24.0
- [request](https://npm.io/package/request.md) ^2.88.0
- [taffydb](https://npm.io/package/taffydb.md) ^2.7.3
- [ink-docstrap](https://npm.io/package/ink-docstrap.md) ^1.3.2

## Recent versions

- 1.0.11 (latest) — 2024-10-23
- 1.0.10 — 2024-05-20
- 1.0.9 — 2024-03-14
- 1.0.8 — 2024-02-27
- 1.0.7 — 2024-02-27
- 1.0.6 — 2024-02-27
- 1.0.5 — 2022-12-07
- 1.0.4 — 2022-12-02
- 1.0.3 — 2020-09-18
- 1.0.2 — 2020-03-19
- 1.0.1 — 2020-03-18
- 1.0.0 — 2020-02-19

## README

# README #

### What is this repository for? ###

This repository is for an SDK to Kloudspot Analytics

Created Jan 31st 2020 - Version 1.0.0


### How do I get set up? ###

- Checkout the repository
- Navigate to the `kloudspot-analytics-node-sdk` directory
- Run `npm install` to install dependencies
- Your SDK is now ready to be used
- Navigate to `test` directory
- Run `node client.js`

The SDK should connect to Kloudspot Analytics Platform and retrieve client analytics data.

### What are the pre-requisites to use this SDK? ###

- You need to have a valid account on Kloudspot Analytics Platform
- You need to get ID and SecretKey from your Account. Please click on the "Gear" icon on the top menubar and select "API Keys"
- If there is not one present, click on "New API Key" to generate one.

### How do I use this SDK? ###

Using the SDK is pretty straight forward. Here is a sample code to import the SDK and connect to Kloudspot Analytics Platform

------------------------------------------------

```javascript
//1) Import Kloudspot Analytics library (from wherever it is located)
var KloudspotInsights = require('kloudspot-analytics-node-sdk');

//2) Create a Kloudspot Analytics client by providing the host URL, ID and SecretKey (can get one from your Account Settings page, see pre-requisites section above)
var ksClient = new KloudspotInsights({
	'host': '<your kloudspot instance baseurl>',
	'id': '<your kloudspot clientID>',
	'secretKey': '<your kloudspot clientSecret>'
});

//3) Get the list of sites
ksClient.siteHierarchy.sites().then(function(response) {
 	//Response should contain all the sites in the system
 	if(response && Array.isArray(response)) {
 		console.log('Number of sites in the system: '+response.length);
 	} else {
 		console.log(response);
 	}
 });
```
------------------------------------------------

### Who do I talk to? ###

For any further questions on using the SDK, please contact -
- Uday Pyda (uday@kloudspot.com)

---
_Source: https://npm.io/package/kloudspot-analytics-node-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
