SDK API Reference

Authentication

Authenticate()

This method is used to authenticate the user with the system. It requires a valid API key.


                    const apiKey = "YOUR_API_KEY";
                    Authenticate(apiKey);
                

RefreshTokens()

Used to refresh access tokens.


                   RefreshTokens();
                

Data Operations

GetData(id)

Retrieves data based on a given ID.


                    const userId = 123;
                    GetData(userId);
                

PostData(data)

Sends data to the server.


                    const newData = { name: "John Doe", age: 30 };
                    PostData(newData);