Skip to content

Instantly share code, notes, and snippets.

@mepesh
Created May 15, 2020 15:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mepesh/4ebafeb67d782f52cf8bd685fcbb0d66 to your computer and use it in GitHub Desktop.
Save mepesh/4ebafeb67d782f52cf8bd685fcbb0d66 to your computer and use it in GitHub Desktop.
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