amt

Node API for Amazon Mechanical Turk

Amazon Mechanical Turk (AMT)

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( errhit ) {
  // hit created! wow 
} );

Documentation

  • 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

Debug

The lib uses the debug module for debugging purposes, just add DEBUG=amt* to see log information.

Examples

See test.js

License

Copyright (c) 2013 Riccardo Volonterio. Licensed under the MIT license.