Javascript

TimeSeal Javascript SDK

The TimeSeal Node.js SDK allows you to easily integrate TimeSeal's API into your Node.js applications. This documentation provides an overview of how to install the SDK, authenticate using your API key, and make requests to the TimeSeal API endpoints.

Installation

You can install the TimeSeal Node.js SDK using npm, the Node.js package manager. Open a terminal and run the following command:

npm install timeseal-sdk

Usage

  1. Import the TimeSeal SDK and configure it with your API key.

const TimesealSDK = require('timeseal-sdk');

const config = {
    apikey: process.env.TIMESEAL_API_KEY,
};

const timeseal = new TimesealSDK(config);
  1. Make API requests using the Timeseal SDK.

const response = await timeseal.Timeseal.v1.timeseal({
    data: "test",
    type: "create",
});

API Reference

timeseal.Timeseal.v1.timeseal(options)

This method sends a request to create a TimeSeal for the specified data.

  • options (object): An object containing the request parameters.

    • data (string): The data to be TimeSealed.

    • type (string): The type of operation. Can be create, update or delete

Returns a Promise that resolves to the API response.

Conclusion

The TimeSeal Node.js SDK provides a simple way to interact with the TimeSeal API using Node.js applications. By following the installation and usage instructions, you can seamlessly integrate timesealing functionality into your projects. For more information about the TimeSeal API endpoints and features, refer to the official TimeSeal API documentation.

Last updated