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.
import { Anedya, AnedyaGetDataReq, AnedyaGetDataResp} from "@anedyasystems/anedya-frontend-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 req = new AnedyaGetDataReq(variableIdentifier,fromTime,toTime);
const res = await node_1.getData(req);