params = {
“name”: “auto_test_xing_01”,
"tenant_id ": tenant_id,
“language”: “af”,
“category_type”: 1,
“content”: “”,
“headerText”: “”,
“footerText”: “foot”,
“mediaName”: “test.jpg”,
“templateMediaId”: templateMediaId11,
“mediaId”: mediaId22,
“mediaType”: “IMAGE”,
“tag_name”:“test”,
“is_close_auto_flow”: 0,
“buttonComponents”: [
{
“customizeType”: “conventional”,
“text”: “button1”,
“type”: “QUICK_REPLY”,
“payload”: “”,
“buttonEvents”: [
{
“event”: “tag”,
“tagName”: “Viber tag”
},
{
“event”: “template”,
“templateId”: 314,
“templateName”: “buttontest22”
}
]
},
{
“customizeType”: “conventional”,
“text”: “button 2”,
“type”: “QUICK_REPLY”,
“payload”: “test text”,
“buttonEvents”: [
{
“event”: “tag”,
“tagName”: “Viber tag”
},
{
“event”: “text”,
“text”: “test text”
}
]
},
{
“customizeType”: “conventional”,
“text”: “button3”,
“type”: “QUICK_REPLY”,
“payload”: “”,
“buttonEvents”: [
{
“event”: “template”,
“templateId”: 313,
“templateName”: “test_8”
}
]
}
]
}
body = json.dumps(params, ensure_ascii=False, separators=(“,”, “:”))