my.getSiteInfo

Use this API to obtain the site information.

Note:

Please make sure you use the Appx with 1.24.6 or higher versions in order to use this API.

Sample code

copy
my.getSiteInfo({
  success: (res) => {
    my.alert({
      content: JSON.stringify(res),
    });
  },
  fail: (res) => {
    my.alert({
      content: JSON.stringify(res),
    });
  }
});

Input Parameters

PropertyType

Required

Description
successFunctionNoCallback function upon call success.
failFunctionNoCallback function upon call failure.
completeFunctionNo Callback function upon call completion (to be executed upon either call success or failure).

Success Callback Function

PropertyTypeDescription
siteNameStringFollowing values are supported:
DANA

An example of a successfully returned message is as follows:

copy
{
  "siteName":"DANA"
}