Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
app.route("/elements/card", methods=['POST'])
def card_return():
response = [
{
"card":{
"title": "Card Title",
"subtitle":"Subtitle Here",
"imageUri": "https://stock.rtl.lu/rtl/800/rtl2008.lu/nt/p/2020/04/09/16/fdfbf19dc86cb2ef05908e9e83885f97.png",
"buttons":[
{
"text":"Provience Data",
"postback":"province data int"
},
{
"text":"Button 2",
"postback":"button-2-int"
},
{
"text":"News and Updates",
"postback":"news-updates-int"
}
]
},
"platform":"FACEBOOK"
},
{
"text":{"text":["Dummy text"]}
},
]
reply = { "fulfillmentMessages": response }
return reply
return jsonify(reply)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment