一部の作業をAmazonのMechanicalTurkにアウトソーシングするようにRturkを設定しようとしています。を作成しようとするとHITs
、コンソールで次のエラーが発生し続けます。
RestClient::BadRequest: 400 Bad Request
URLをコピーしてブラウザに貼り付けて応答を取得すると、次のメッセージが表示されます。
This user is not authorized to perform the requested operation
ここで何が起こっているのか分かりますか?私はgithubのrturkドキュメントに従っています。https://github.com/mdp/rturk gemを更新する必要がある可能性はありますか?
RTurk.setup(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY_ID'], :sandbox => true)
hit = RTurk::Hit.create(
:title => "Sample turk",
:assignments_duration => 1.hour,
:expires_at => 1.day.from_now
) do |hit|
hit.lifetime = 1.day
hit.assignments = 1
hit.description = "Test description."
hit.keywords = "places, search, map, location"
hit.question(mturk-fb_path, :frame_height => 750)
hit.reward = reward
if approval_rate
hit.qualifications.add :approval_rate, { :gt => approval_rate }
end if abandoned_rate
hit.qualifications.add :abandoned_rate, { :lt => abandoned_rate }
end
if is_us
hit.qualifications.add :country, { :eql => "US" }
end
end
}