หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
ตัวอย่าง รายงานสภาพอากาศประจำวัน เป็นการ์ดแบบปรับได้ซึ่งออกแบบมาเพื่อใช้กับ MSN weather ในการโพสต์การอัปเดตสภาพอากาศประจำวันไปยังช่องทางของ Teams
ข้อมูลป้อนเข้า/ผลลัพธ์ และบันทึกย่อ
ชื่อโทเค็นแบบไดนามิก | ข้อความตัวยึด | บันทึกย่อ |
---|---|---|
{acCityState} | ดูเทมเพลต | แสดงข้อความ ตัวแปรสามารถใช้เพื่อระบุค่าเมือง รัฐ หรือรหัสไปรษณีย์ได้ |
{acDailySummary} | ดูเทมเพลต | แสดงข้อความ |
{acCurrentDateTime} | ดูเทมเพลต | แสดงข้อความ |
{acUrlConditionsImage} | ดูเทมเพลต | แสดงข้อความ ดูความคิดเห็นเทมเพลต ต้องมีการแทนที่ด้วย URL ที่ถูกต้องเท่านั้น |
{acCurrentTemperature} | ดูเทมเพลต | แสดงข้อความ |
{actempHi} | ดูเทมเพลต | แสดงข้อความ |
{actempLow} | ดูเทมเพลต | แสดงข้อความ |
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "{acCity}, {acState}",
"size": "Large",
"isSubtle": true
},
{
"type": "TextBlock",
"text": "{acCurrentDateTime}",
"spacing": "None"
},
{
"type": "TextBlock",
"text": "{acDailySummary}",
"spacing": "None"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "{acUrlConditionsImage}",
"size": "Large"
}
]
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "TextBlock",
"text": "{acCurrentTemperature}",
"size": "ExtraLarge",
"spacing": "None"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "°F",
"weight": "Bolder",
"spacing": "Small"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Hi {actempHi}",
"horizontalAlignment": "Left"
},
{
"type": "TextBlock",
"text": "Lo {actempLow}",
"horizontalAlignment": "Left",
"spacing": "None"
}
]
}
]
}
]
}