For the complete documentation index, see llms.txt. This page is also available as Markdown.

registerService

Used to register MarsApp's Self Service request. This method must be used with the checkServiceStatus method to verify the registration status.

This method must be used together with checkServiceStatus to verify the registration status.

Request Parameters:

Parameter Name
Type
Required
Description

serviceKey

String

Yes

Identifier for registering Self Service.

Response Parameters: None

Call Example:

example.js
let payload = {
  serviceKey: "xxxxxx"
};

let sign = {
  content: "xxxxxx",
  signature: "xxxxxx"
}; 

const response = await relayx.registerService(payload, sign);
if (response.code == 200) {
  console.log("Service registration in progress");
}

Last updated