pymsteams
pymsteams copied to clipboard
convert JSON to pymsteams
Hello, I tried converting following JSON into your pymsteams logic: PICTURE
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "86bb0b",
"summary": "Eingehende Ring Doorbell Benachrichtigung!",
"sections": [{
"activityTitle": "ACHTUNG!",
"activitySubtitle": "von RealRing API v1",
"activityImage": "data:image/jpeg;base64,/9j/4.....",
"facts": [{
"name": "Ort",
"value": "%s"
}, {
"name": "Zeitpunkt",
"value": "%s"
}],
"markdown": true
}],
"potentialAction": [{
"@type": "ActionCard",
"name": "LIVESTREAM",
"@type": "openUri",
"targets": [
{ "os": "default", "uri": "https://f6f7a6ef2.ngrok.io/..." }
]
}, {
"@type": "ActionCard",
"name": "Zutritt erlauben",
"actions": [{
"@type": "HttpPOST",
"name": "Genehmigen",
"target": "https://f6f76aef2.ngrok.io.....",
"bodyContentType":"application/json",
"body": '{
"id" : "%s"
}'
}]
}]
}
But somehow I cant figure out how I can remake this. Just by the way, with this JSON i don't get the button which says "LIVESTREAM" on mobile phone so basically on mobile I can only see the button called "Zutritt erlauben", do you possibly know why?
thanks