Twake public developers API v1
Example of Twacode
{
...
"blocks": {
"twacode": [
{type: "button", content: "Open meeting", action: "<https://url>"}
]
}
}
Liste des éléments Twacode
Buttons are active objects, they allow to send a notification to the application.
The other interactive elements are passive, they do not send a notification, but their values will be sent with the next event (click on a button for example) in the form
field.
If a user uses #chan or @username when sending a message or a command, it is possible to retrieve the corresponding identifier. In backend, #chan
is transformed into #chan:chan-id
and @username
is transformed into @username:user-id
.