Simple lambda function to display coups in a JSON format perfect for slack commands.
Deployable via apex.
GET - Integration Response
{
"attachments": [
{
"fallback": "Check: $input.path('$.location')",
"title": "Coups around the office",
"title_link": "$input.path('$.location')",
"text": "We have some coups for you!",
"image_url": $input.json('$.location'),
"color": "#61FFD8"
}
]
}
MIT