Img_0163_normalPorta

http://twitter.com/Porta

SetHITTypeNotification Amazon Mechanical Turk

  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
Added 3 months ago
Post Code