1

I'm trying to use the UniqueRequestToken parameter of create_hit as documented here. It doesn't show up as a parameter in boto.mturk.connection.MTurkConnection.create_hit. I tried to use it, guessing that it would be called unique_request_token, and got the following:

TypeError: create_hit() got an unexpected keyword argument 'unique_request_token'

Does boto simply not support that parameter? Is there any way to get around this, short of patching the boto client?

bgschiller
  • 2,087
  • 1
  • 16
  • 30

1 Answers1

2

It is not implemented by Boto. You need to patch Boto to add this if you want to continue using Boto.

Alternatively, you can use my Python mTurk API. You'd make this request like:

from mturkcore import MechanicalTurk
m = MechanicalTurk()
m.create_request("CreateHIT", {..."UniqueRequestToken":"..."})

I personally believe mine is a better option because it uses the exact names in the documentation and supports the entire API. If a new name is added, it will (hopefully) be supported by mine even if I do not update :)

Best of luck!

Fredrick Brennan
  • 7,079
  • 2
  • 30
  • 61