test_spryngtime_sdk
v1.0.11112
Published
Client for Spryngtime Usage Analytics & Billing API
Downloads
4
Maintainers
Readme
test_spryngtime_sdk
Spryngtime Usage Analytics & Billing API
Table of Contents
Installation
npm i test_spryngtime_sdk
pnpm i test_spryngtime_sdk
yarn add test_spryngtime_sdk
Getting Started
import { SpryngtimeAnalyticsSdk } from "test_spryngtime_sdk";
const spryngtimeanalyticssdk = new SpryngtimeAnalyticsSdk({
// Defining the base path is optional and defaults to http://localhost
// basePath: "http://localhost",
apiKey: "API_KEY",
});
const trackUsageResponse =
await spryngtimeanalyticssdk.usageTracking.trackUsage({
key: "key_example",
});
console.log(trackUsageResponse);
Reference
spryngtimeanalyticssdk.usageTracking.trackUsage
Track usage data
🛠️ Usage
const trackUsageResponse =
await spryngtimeanalyticssdk.usageTracking.trackUsage({
key: "key_example",
});
⚙️ Parameters
key: string
openAiResponse: OpenAiResponse
usage: UsageDetail
🌐 Endpoint
/trackUsage
POST
spryngtimeanalyticssdk.default.rootGet
Home
🛠️ Usage
const rootGetResponse = await spryngtimeanalyticssdk.default.rootGet();
🌐 Endpoint
/
GET
spryngtimeanalyticssdk.default.usersPost
Adds a new user
🛠️ Usage
const usersPostResponse = await spryngtimeanalyticssdk.default.usersPost({
id: 10,
name: "Jessica Smith",
});
⚙️ Parameters
id: number
name: string
🌐 Endpoint
/users
POST
Author
This TypeScript package is automatically generated by Konfig