add UniqueRequestToken option to mturk connection CreateHIT API #1779

Open
wants to merge 1 commit into
from

Projects

None yet

4 participants

libscott commented Oct 9, 2013

http://docs.aws.amazon.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_CreateHITOperation.html

"UniqueRequestToken
A unique identifier for this request. Allows you to retry the call on error without creating duplicate HITs."

Havn't been able to test this since running python tests/test.py seemed to stall forever (see below), but it's a simple change so it should just require a test run to make sure everything goes smoothly.

Stack trace from cancelling test.py:

File "/Users/scott/Code/boto/boto/manage/test_manage.py", line 6, in <module>
  volume = Volume.create()
File "/Users/scott/Code/boto/boto/manage/volume.py", line 99, in create
  getter.get(cls, params)
File "/Users/scott/Code/boto/boto/manage/volume.py", line 70, in get
  self.get_region(params)
File "/Users/scott/Code/boto/boto/manage/volume.py", line 40, in get_region
  params['region'] = propget.get(prop, choices=boto.ec2.regions)
File "/Users/scott/Code/boto/boto/manage/propget.py", line 42, in get
  value = raw_input('%s [%d-%d]: ' % (prompt, min, max))
KeyboardInterrupt

Hi! Is there anything I can do to help this get merged in? I need the same feature :)

@toastdriven toastdriven removed their assignment Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment