Environment Integration
Environment Requirements and Technology Stack
Frontend Frameworks: React, Vue.js, Native HTML/JavaScript
Development Requirements: Support for ES6+ syntax and modular development
Integration Methods
Install Dependencies
npm install relayx-apiImport Library Files
import { RelayXClient } from "relayx-api";Native JavaScript Project Integration
1
API Usage Instructions
Create Instance
Parameter description:
Pass in a configuration object containing optional parameters
timeout: API call timeout in milliseconds, default 30000 milliseconds
API Method Calls
Parameter description:
cmd: The specific API interface method namepayload: The parameter object for the interface callsign: API authentication signature object (optional parameter)
Return value: All API methods return Promise objects. It is recommended to use async/await syntax to handle asynchronous calls.
Last updated