Get instance settings structure
Gets the structure template for instance settings
- Parameters
- Advanced call ?
Function GetInstanceSettingsStructure(Val Clear = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns
Structure Of KeyAndValue - Structure of instance settings
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Result = OPI_GreenMax.GetInstanceSettingsStructure();
- Bash
- CMD/Bat
oint greenmax GetInstanceSettingsStructure \
--empty true
oint greenmax GetInstanceSettingsStructure ^
--empty true
Result
{
"webhookUrl": "<URL for notification sending>",
"webhookUrlToken": "***",
"delaySendMessagesMilliseconds": "<message sending interval in milliseconds>",
"markIncomingMessagesReaded": "<mark incoming messages as read: yes, no>",
"markIncomingMessagesReadedOnReply": "<mark incoming messages as read when sending a message to chat: yes, no>",
"outgoingWebhook": "<receive notifications about the send/deliver/read status of outgoing messages: yes, no>",
"outgoingMessageWebhook": "<receive notifications of messages sent from phone: yes, no>",
"outgoingAPIMessageWebhook": "***",
"stateWebhook": "<receive notifications about changes in the authorization state of the instance: yes, no>",
"incomingWebhook": "<receive notifications of incoming messages and files: yes, no>"
}