SDK Initialization Example
The SDK can be used normally after the initialization is completed. The following is an example of SDK initialization code:
Parameter Description
| Name | Type | Description |
|---|---|---|
appId |
string | the application ID, which can be applied to relevant operators |
appSecret |
string | data request key, which can be provided to relevant operators |
AppMode |
string | AppMode |
serverUrl |
string | Optional If not provided, the service defaults to the China server endpoint serverUrl: China server endpoint: "https://api.autoxing.com/" Global server endpoint: "https://apiglobal.autoxing.com/" |
websocketUrl |
string | Optional If not provided, the service defaults to the China server endpoint websocketUrl: China server endpoint: "wss://service.autoxing.com/" Global server endpoint: "wss://serviceglobal.autoxing.com/" |