SetHITTypeNotification Amazon Mechanical Turk
Language: Ruby
include Amazon::WebServices::MTurk
@@mturk = Amazon::WebServices::MechanicalTurkRequester.new :Config => File.join( "#{RAILS_ROOT}/config/", "mturk.yml" )
def create_notification(hit_type_id, email)
result = @@mturk.SetHITTypeNotification(
:HITTypeId => hit_type_id,
:Notification => {
:Destination => email,
:Transport => "Email",
:EventType => "AssignmentSubmitted",
:Version => "2006-05-05"
},
:Active => true
)
end
Reveal More

