Sha256: 44670a70bc5aa4765071f5c9c9a055b494900bc72fd8265a4bcede5aefe3b400
Contents?: true
Size: 488 Bytes
Versions: 6
Compression:
Stored size: 488 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.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