Sha256: 7b8cd24e703ce965fde4a350181b41b15bd18cc59cb627765680db8639515d41
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
$: << File.join(File.dirname(__FILE__), '..', 'lib') require 'rubygems' require '../lib/rturk' aws = YAML.load(File.open(File.join(File.dirname(__FILE__), 'mturk.yml'))) RTurk::setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) root = File.expand_path(File.dirname(__FILE__)) aws = YAML.load(File.open(File.join(root, '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.url
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rturk-2.0.0 | examples/create_hit.rb |