Skip to content

AXRobot Constructor

AXRobot("<appId>", "<appSecret>", "<AppMode>", "<serverUrl>", "<websocketUrl>")

Constructor

Parameters

Name Type Description
appId string appId
appSecret string appSecret
AppMode string Application mode
serverUrl string serverUrl:
Mainland access point:"https://api.autoxing.com/"
Overseas access point:"https://apiglobal.autoxing.com/"
websocketUrl string websocketUrl:
Mainland access point:"wss://service.autoxing.com/"
Overseas access point:"wss://serviceglobal.autoxing.com/"
warning

Please select the relevant access point for your business

Return Value

Example

Example
TypeScript
1
2
3
4
5
6
7
8
9
    import { AXRobot, AppMode } from "@autoxing/robot-js-sdk";

    const axRobot = new AXRobot(
        "<appId>", 
        "<appSecret>",
        AppMode.WAN_APP, 
        "https://api.autoxing.com/", 
        "wss://service.autoxing.com/"
    );
TypeScript
1
2
3
4
5
6
7
8
9
    import { AXRobot, AppMode } from "@autoxing/robot-js-sdk";

    const axRobot = new AXRobot(
        "<appId>", 
        "<appSecret>", 
        AppMode.WAN_APP, 
        "https://apiglobal.autoxing.com/", 
        "wss://serviceglobal.autoxing.com/"
    );