# turk

> Amazon Mechanical Turk API - more coverage, less ORM

Latest version **0.7.0** (published 2018-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install turk
pnpm add turk
yarn add turk
bun add turk
```

Provides the command `turk`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2018-03-05 |
| First published | 2013-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 18.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Christopher Brown |
| Maintainers | chbrown |
| Keywords | mechanical, turk, amazon, aws, api |

## Links

- npm: https://www.npmjs.com/package/turk
- Repository: https://github.com/chbrown/turk
- Homepage: https://github.com/chbrown/turk#readme
- Issues: https://github.com/chbrown/turk/issues
- npm.io page: https://npm.io/package/turk

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.83.0
- [optimist](https://npm.io/package/optimist.md) ^0.6.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.7.0 (latest) — 2018-03-05
- 0.7.0-rc.1 — 2018-03-03
- 0.6.0 — 2015-04-21
- 0.5.3 — 2014-03-31
- 0.5.2 — 2013-10-07
- 0.5.1 — 2013-09-10

## README

# turk: Amazon Mechanical Turk API

[![npm version](https://badge.fury.io/js/turk.svg)](https://www.npmjs.com/package/turk)

See http://en.wikipedia.org/wiki/Web_Services_Description_Language
In combination with http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_WsdlLocationArticle.html


**Install:**

    npm install turk

Or merge the following into your `package.json`:

    {
      "dependencies": {
        "turk": "*"
      }
    }


## SQS Message Payload

The body of each SQS message is a JSON-encoded structure that provides support for multiple events in each message.

The following specifications are taken from the [AWS MechTurk documentation](http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_SetHITTypeNotificationOperation.html).

The JSON-encoded structure consists of the following properties:

* `EventDocVersion`: This is the requested version that is passed in the call to SetHITTypeNotification, such as '2006-05-05'. For a requested version, Mechanical Turk will not change the structure or definition of the output payload structure in a way that is not backward-compatible.
* `EventDocId`: A unique identifier for the Mechanical Turk. In rare cases, you may receive two different SQS messages for the same event, which can be detected by tracking the EventDocId values you have already seen.
* `CustomerId`: Your customerId.
* `Events`: A list of Event structures, described below.

The Event structure consists of the following properties:

* `EventType`: A value corresponding to the EventType value in the notification specification data structure.
* `EventTimestamp`: A dateTime in the Coordinated Universal Time time zone, such as 2005-01-31T23:59:59Z.
* `HITTypeId`: The HIT type ID for the event.
* `HITId`: The HIT ID for the event.
* `AssignmentId`: The assignment ID for the event, if applicable.


## License

Copyright 2013–2015 Christopher Brown. [MIT Licensed](http://chbrown.github.io/licenses/MIT/#2013-2015).

---
_Source: https://npm.io/package/turk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
