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
| Property | Type | Required | Description |
| success | Function | No | Callback function upon call success. |
| fail | Function | No | Callback function upon call failure. |
| complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |
Success Callback Function
| Property | Type | Description |
| siteName | String | Following values are supported: DANA |
An example of a successfully returned message is as follows:
copy
{
"siteName":"DANA"
}