本文整理汇总了Python中pyeloqua.Bulk.add_syncaction方法的典型用法代码示例。如果您正苦于以下问题:Python Bulk.add_syncaction方法的具体用法?Python Bulk.add_syncaction怎么用?Python Bulk.add_syncaction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyeloqua.Bulk
的用法示例。
在下文中一共展示了Bulk.add_syncaction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_syncact_add
# 需要导入模块: from pyeloqua import Bulk [as 别名]
# 或者: from pyeloqua.Bulk import add_syncaction [as 别名]
def test_syncact_add():
""" add sync action with specified destination and action """
bulk = Bulk(test=True)
bulk.exports('contacts')
bulk.add_syncaction(action='add',
destination='{{ContactList[12345]}}')
assert bulk.job['options']['syncActions'][0] == {
"action": "add",
"destination": "{{ContactList[12345]}}"
}
示例2: test_syncact_add_status
# 需要导入模块: from pyeloqua import Bulk [as 别名]
# 或者: from pyeloqua.Bulk import add_syncaction [as 别名]
def test_syncact_add_status():
""" add sync action with specified destination, action and status """
bulk = Bulk(test=True)
bulk.exports('contacts')
bulk.add_syncaction(action='add',
destination='{{ActionInstance(f82d).Execution[12345]}}',
status='complete')
assert bulk.job['options']['syncActions'][0] == {
"action": "add",
"destination": "{{ActionInstance(f82d).Execution[12345]}}",
"status": "complete"
}