Created
May 15, 2020 15:43
-
-
Save mepesh/4ebafeb67d782f52cf8bd685fcbb0d66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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