Sha256: 3dae6f1ff3bd4e457d6fa2f3ea027e71772e4d39736f186e170bd7365107ed93
Contents?: true
Size: 492 Bytes
Versions: 6
Compression:
Stored size: 492 Bytes
Contents
require File.expand_path('../example_helper', __FILE__) aws = YAML.load(File.open(File.join(File.dirname(__FILE__), 'mturk.yml'))) RTurk::setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) hit = RTurk::Hit.create(:title => 'Write a tweet for me') do |hit| hit.description = 'Simply write a witty twitter update for my account' hit.reward = 0.05 hit.max_assignments = 1 hit.question("http://mpercival.com.s3.amazonaws.com/newtweet.html") end p hit.hit_id p hit.url
Version data entries
6 entries across 6 versions & 1 rubygems