Custom Payload Hangouts example
{ | |
"hangouts": { | |
"header": { | |
"title": "Pizza Bot Customer Support", | |
"subtitle": "pizzabot@example.com", | |
"imageUrl": "https://goo.gl/aeDtrS" | |
}, | |
"sections": [ | |
{ | |
"widgets": [ | |
{ | |
"keyValue": { | |
"icon": "TRAIN", | |
"topLabel": "Order No.", | |
"content": "12345" | |
} | |
}, | |
{ | |
"keyValue": { | |
"topLabel": "Status", | |
"content": "In Delivery" | |
} | |
} | |
] | |
}, | |
{ | |
"header": "Location", | |
"widgets": [ | |
{ | |
"image": { | |
"imageUrl": "https://dummyimage.com/600x400/000/fff" | |
} | |
} | |
] | |
}, | |
{ | |
"header": "Buttons - i could leave the header out", | |
"widgets": [ | |
{ | |
"buttons": [ | |
{ | |
"textButton": { | |
"text": "OPEN ORDER", | |
"onClick": { | |
"openLink": { | |
"url": "https://example.com/orders/..." | |
} | |
} | |
} | |
} | |
] | |
}] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment