0.0.17 • Published 5 months ago
my-first-npm-sdk v0.0.17
Anedya SDK
The Anedya SDK is a JavaScript/TypeScript library that allows you to access the Anedya Platform API from your web application. It provides a simple and intuitive interface for interacting with the Anedya API, making it easy to integrate Anedya into your existing application.
Installation
You can install the Anedya SDK using npm or yarn:
npm install anedya-sdk
or
yarn add anedya-sdk
Usage
import { Anedya, Anedya_GetData_Req_Obj, Anedya_GetData_Resp_Obj} from "anedya-sdk";
const anedya = new Anedya();
const connect_config = anedya.NewConfig(tokenId, token);
const client = anedya.NewClient(connect_config);
const node_1 = anedya.NewNode(client, NodeId);
const getData_req = new Anedya_GetData_Req_Obj(variableIdentifier,from_time,to_time);
let getData_resp = new Anedya_GetData_Resp_Obj();
getData_resp = await node_1.getData(getData_req);