Node API for Amazon Mechanical Turk, heavily inspired by mturk by jefftimesten.
Install the module with: npm install amt
var AMT = require('amt');
amt = new AMT( {
key: 'API_KEY',
secret: 'SECRET_KEY',
} );
var hit = new amt.HIT( {
title: 'Test',
description: 'Test description',
reward: new amt.Reward( 0.01 ),
question: 'Some super complex xml here',
duration: 60*1, // 1 minute,
life: 60*5 // 5 minutes
} );
hit.create( function( err, hit ) {
// hit created! wow
} );
- Reward
- Notification
Class description.
TODO
TODO
Class description.
Static methods:
- HIT.get( id, callback )
- HIT.search( params, callback )
TODO
TODO
TODO
TODO
TODO
Class description.
Static methods:
- Assignment.get( id, callback )
TODO
TODO
TODO
See test.js
Copyright (c) 2013 Riccardo Volonterio. Licensed under the MIT license.