Getting Started Sample for Amazon Mechanical Turk in Ruby (REST)

items>Getting Started Sample for Amazon Mechanical Turk in Ruby (REST)
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

An example of making a call to the Amazon Mechanical Turk web serviceusing the REST interface in Ruby.

Details

Submitted By: iheart2shop
AWS Products Used: Other
Created On: October 11, 2006 10:00 PM GMT
Last Updated: September 21, 2008 9:45 PM GMT

About This Sample

  • This is an example of making a call to the Amazon Mechanical Turk web service using the REST interface in Ruby.
  • This example demonstrates how to sign an AWS request in Ruby.
  • This code is pre-built to use API version 2007-03-12.

Prerequisites

  • You will need an Amazon Web Services account. You can sign up at the AWS web site: http://aws.amazon.com.
  • You will need an Amazon Mechanical Turk Requester account. You can sign up at the Requester web site: http://requester.mturk.amazon.com
  • This Ruby example uses Ruby 1.8.

Using the Sample

  1. Update the GetAccountBalance.rb file to include your Amazon Web Services Access Key ID and Secret Access Key. You can retrieve this information from the AWS web site: http://aws.amazon.com
  2. Run the example by entering the following command:
    ruby GetAccountBalance.rb
    The command response should be similar to the following:
    Account Balance: $0.00

Related Documents

©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.