Skip to main content

Installation

To use the SDK, install it via npm:
npm i @dscloud/sdkapi

Usage

const { DsCloudAPIKEY } = require("@dscloud/sdkapi");

// Instantiate the API client
const api = new DsCloudAPIKEY("Your API Key");

Parameters

API Key

  • Type: string
  • Required: Yes
  • Description: A valid API key is required for authentication and must be provided as a string.

Getting Started

Using the DSCloudSDK, you can retrieve details about the user associated with the API key, as well as a list of applications linked to that user.

Example

const user = await api.getUser();
const application = await api.getApplication("Application ID");

console.log(user.applications); // List of applications

Application Management

With the DSCloudAPI client, you can access and manage your applications easily. Each application is represented as an instance of the Application class, allowing for convenient interaction without needing to repeatedly specify the application ID.

Listing All Applications

const application = await api.getApplications("Application ID");

console.log(application); // List of applications