English 中文(简体)
How do you specify the requester s workerID in a mechanical turk HIT?
原标题:

I want to create an mturk HIT that has a URL like so:
www.example.com?source=worker_id
where worker_id is the worker s ID code. I m initially going to create these from the mturk web UI, then once I get it working right, from PHP. But I can t figure out how to get at the worker s ID from the modified-HTML syntax of an mturk HIT.

问题回答

Mechanical Turk will call your website with a URL that looks like:

www.example.com/?hitId=2384239&assignmentId=ASD98ASDFADJKH&workerId=ASDFASD8

In your php page that is at that location you can access the workerId (as well as the other Ids) like so:

<?php
$hitId        = $_REQUEST["hitId"];
$assignmentId = $_REQUEST["assignmentId"];
$workerId     = $_REQUEST["workerId"];

echo "Hit ID: $hitId
";
echo "Ass ID: $assignmentId
";
echo "Worker ID: $workerId
";
?>

Note that the workerId is NOT sent during the preview, only after the HIT has been accepted. If you re using an External HIT, you can create a cookie to see if it s a worker who has accepted a previous hit, but of course that method is unreliable.





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签