amt
Node API for Amazon Mechanical Turk
Last updated 6 years ago by volox .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amt 
SYNC missed versions from official npm registry.

Amazon Mechanical Turk (AMT)

Node API for Amazon Mechanical Turk, heavily inspired by mturk by jefftimesten.

Getting Started

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
} );

Documentation

Simple objects

  • Reward
  • Notification

HITType

Class description.

hitType.create( callback )

TODO

hitType.setNotification( notification, callback )

TODO

HIT

Class description.

Static methods:

  • HIT.get( id, callback )
  • HIT.search( params, callback )

hit.create( callback )

TODO

hit.disable( callback )

TODO

hit.dispose( callback )

TODO

hit.expire( callback )

TODO

hit.getAssignments( params, callback )

TODO

Assignment

Class description.

Static methods:

  • Assignment.get( id, callback )

assignment.approve( message, callback );

TODO

assignment.reject( message, callback );

TODO

assignment.approveRejected( message, callback );

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.

Current Tags

  • 0.1.4                                ...           latest (6 years ago)

5 Versions

  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (2)
Dependents (3)

Copyright 2014 - 2016 © taobao.org |