Skip to content

Ceffu/ceffu-openapi-sdk-nodejs

Repository files navigation

Ceffu OpenAPI SDK for Node.js · GitHub license

This is a Node.js SDK of Ceffu OpenAPI

To start with, create an api key on Ceffu platform. If you do not have an account, please reach to Ceffu at here.

Installation

// install through npm
npm install @ceffu_custody/ceffu-openapi-sdk

// or install through yarn
yarn add @ceffu_custody/ceffu-openapi-sdk

Example:

const { APIClient, Enum } = require("@ceffu_custody/ceffu-openapi-sdk");

const apiKey = "...";
const apiSecret = "...";

const client = new APIClient({
  apiKey,
  apiSecret,
  shouldValidate: true, // switch on/off params validation, default true
});

try {
  const response = await client.getSystemStatus({
    bizType: Enum.BizType.Deposit,
    walletType: Enum.WalletType.Qualified,
  });
  // response: {
  //   data: {...},
  //   code: "000000",
  //   message: "Success",
  //   requestId: "..."
  // }
} catch (error) {
  // handle error
  // error: {
  //   requestId: "...",
  //   status: ...,
  //   errorCode: ...,
  //   errorMessage: ...,
  // }
}

Documentation

You can find the Ceffu OpenAPI documentation at here

If you require immediate assistance, we recommend you to speak with your Account Manager or contact our Support team. To facilitate debugging, please provide the requestId along with the api request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors