Amazon Mechanical Turk SDK for Perl

Sample Code & Libraries>Amazon Mechanical Turk SDK for Perl
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.

The Amazon Mechanical Turk SDK for Perl is an open source SourceForge project containing a set of libraries and tools designed to make it easier for you to build solutions leveraging Amazon Mechanical Turk in Perl.

Details

Submitted By: iheart2shop
AWS Products Used: Amazon Mechanical Turk
Language(s): Perl
License: Apache License 2.0
Created On: August 14, 2007 3:52 PM GMT
Last Updated: September 24, 2012 9:45 PM GMT
Download

About this SDK

The Amazon Mechanical Turk SDK for Perl is a set of libraries and tools designed to make it easier for you to build solutions leveraging Amazon Mechanical Turk. The goals of the SDK are:

  • To abstract you from the "muck" of using web services
  • To simplify using the various Amazon Mechanical Turk APIs
  • To allow you to focus more on solving the business problem and less on managing technical details

About the Open Source Project

Visit the Amazon Mechanical Turk SDK for Perl project homepage.

We believe that the developer community is an integral part of making Mechanical Turk easier to use for everyone. Releasing our code to the open source community is the first step in creating an environment of innovation and collaboration with our customers.

Usage


  use Net::Amazon::MechanicalTurk;

  # Create a new MechTurk client
  my $mturk = Net::Amazon::MechanicalTurk->new();

  # Get your balance
  my $balance = $mturk->GetAccountBalance->{AvailableBalance}[0]{Amount}[0];
  print "Your balance is $balance\n";

  
For more in-depth example code, check out the samples folder included in the distribution.

Prerequisites

To use the SDK and successfully run the samples, you must meet these prerequisites:
  • You must have an Amazon Web Services (AWS) account. You can sign up at the AWS web site.
  • You must have an Amazon Mechanical Turk Requester account. Be sure to use the same e-mail address and password you used when creating your Amazon Web Services account. You can sign up at the Requester web site.
  • You must have Perl 5.6.0+. The SDK has been tested on Linux and Windows using Cygwin and ActivePerl.
  • The Amazon Mechanical Turk SDK for Perl depends on the following required modules:
    • LWP
    • MIME::Base64
    • Digest::HMAC_SHA1
    • URI::Escape
    • XML::Parser (You may use XML::Parser::Lite as an alternative)
    The SDK distributable includes an install script which can handle the installation of the above dependencies. However, depending on your system configuration and security settings, you may need to install these dependencies yourself. Please review the included README file for full installation instructions.

Installation

  1. Download the latest distributable from the SourceForge project or from CPAN.
  2. If you are familiar with installing modules directly from CPAN, you can install the SDK via the CPAN Perl Module shell with the following commands:
    $> perl -MCPAN -e shell
    cpan> install Net::Amazon::MechanicalTurk
          
    otherwise, extract the SDK to a directory and consult the README file for full installation instructions.

Running Sample Applications

  1. Navigate to the samples sub-directory of the installation path.
  2. Review the respective Readme files and run the various samples.

Comments, Questions or Feedback

If you have any comments, questions, or feedback concerning the Amazon Mechanical Turk SDK for Perl, please visit our SourceForge project page.

If you have any comments, questions, or feedback concerning the Mechanical Turk service in general, please visit the Amazon Mechanical Turk discussion forums

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