1.0.0 • Published 12 months ago

drdroid-typescript-sdk v1.0.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
12 months ago

drdroid-typescript-sdk@1.0.0

Join event streams in real-time to setup complex alerts

Installing

npm

npm install drdroid-typescript-sdk --save

yarn

yarn add drdroid-typescript-sdk

Important note: this library is can be used in both the client-side or server-side, but using it in client-side browser code is not recommended as you would expose security credentials.

Getting Started

import { Drdroid } from "drdroid-typescript-sdk";

const drdroid = new Drdroid({
  // Defining the base path is optional and defaults to https://ingest.drdroid.io
  // basePath: "https://ingest.drdroid.io",
  accessToken: "ACCESS_TOKEN",
});

const ingestResponse = await drdroid.event.ingest({
  xREQUESTORG: "xREQUESTORG_example",
  data: {},
});

console.log(ingestResponse);

Documentation for API Endpoints

All URIs are relative to https://ingest.drdroid.io

ClassMethodHTTP requestDescription
EventApiingestPOST /e/ingest/events/v2Ingestion V2