本文整理汇总了Python中mygengo.MyGengo.updateTranslationJob方法的典型用法代码示例。如果您正苦于以下问题:Python MyGengo.updateTranslationJob方法的具体用法?Python MyGengo.updateTranslationJob怎么用?Python MyGengo.updateTranslationJob使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mygengo.MyGengo
的用法示例。
在下文中一共展示了MyGengo.updateTranslationJob方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: MyGengo
# 需要导入模块: from mygengo import MyGengo [as 别名]
# 或者: from mygengo.MyGengo import updateTranslationJob [as 别名]
# -*- coding: utf-8 -*-
#!/usr/bin/python
from mygengo import MyGengo
# Get an instance of MyGengo to work with...
gengo = MyGengo(
public_key = 'your_public_key',
private_key = 'your_private_key',
sandbox = True, # possibly false, depending on your dev needs
)
# Update a job that has an id of 42, and reject it, cite the reason,
# add a comment, and throw up some captcha stuff. See the docs for
# more information pertaining to this method, it can do quite a bit. :)
gengo.updateTranslationJob(id = 42, action = {
'action': 'reject',
'reason': 'quality',
'comment': 'My grandmother does better.',
'captcha': 'bert'
})