[Chicago-talk] Help with Net::Amazon::MechanicalTurk
Alan Mead
amead2 at alanmead.org
Sat Mar 26 20:52:59 PDT 2016
On 3/26/2016 6:32 PM, Kent Cowgill wrote:
>
> I found this at least:
>
> https://web.archive.org/web/20110222145817/http://www.vinertech.com/patches/net-amazon-mechanicalturk.patch
Thanks again Kent! I think this is working. In a past email I had one
test failing, 93-RetrieveResults.t, and I think that's because I don't
have any results to retrieve.
And the account balance script needed to be forced to query the
production environment:
#!/usr/bin/perl
use strict;
use warnings;
use Net::Amazon::MechanicalTurk;
# This sample shows how to get your account balance.
my $mturk = Net::Amazon::MechanicalTurk->new;
$mturk->serviceUrl('Production'); # this is the important change
printf "MechanicalTurk account balance: %s\n", $mturk->getAvailableBalance;
-Alan
--
Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.
science + technology = better workers
+815.588.3846 (Office)
+267.334.4143 (Mobile)
http://www.alanmead.org
I've... seen things you people wouldn't believe...
functions on fire in a copy of Orion.
I watched C-Sharp glitter in the dark near a programmable gate.
All those moments will be lost in time, like Ruby... on... Rails... Time for Pi.
--"The Register" user Alister, applying the famous
"Blade Runner" speech to software development
More information about the Chicago-talk
mailing list