See objekt määratleb sõnumimalli.
Code Block |
---|
{
"type": "text",
"resource": {
"parameters": {...}
}
} |
Sõnum nagu "tundmatu"
Code Block |
---|
{
"parameters": {}
} |
Sõnum nagu "kontakt"
Code Block |
---|
{
"parameters": {
"fullName": "Oleksandr Serdiuk",
"phoneNumber": "380950117700"
}
} |
Sõnum nagu "fail"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/logo.png"
}
} |
Sõnum nagu "link"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com"
}
} |
Sõnum nagu "asukoht"
Code Block |
---|
{
"parameters": {
"title": "Kiev, Ukraine",
"latitude": 38.1077,
"longitude": 33.9910
}
} |
Sõnum nagu "pilt"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/logo.png"
}
} |
Sõnum nagu "tekst"
Code Block |
---|
{
"parameters": {
"content": "Hello world!"
}
} |
Sõnum nagu "video"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/video/play.mp4"
}
} |
Sõnum nagu "animatsioon"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/preview.gif"
}
} |
Sõnum nagu "heli"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/call.mp3"
}
} |
Sõnum nagu "hääl"
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/record.mp3"
}
} |
Sõnum nagu “mediaGroup“
Code Block |
---|
{
"parameters": {
"urls": Picture[] | Video[]
}
} |
Sõnum nagu "kohal"
Code Block |
---|
{
"parameters": {
"title": "Kiev, Ukraine",
"address": "Panasa Myrnoho 19, apt 101",
"latitude": 38.1077,
"longitude": 33.9910
}
} |