0
我是亞馬遜機械土耳其人的新手。目前,我正在創建一個谷歌應用程序來使用亞馬遜機械特克。發送通知電子郵件給工作人員
我嘗試向工作人員發送通知郵件。但它並不成功。
這是我的代碼:
dicts = {'WorkerId': self.worker_id, 'Subject': self.message_subject, 'MessageText': self.message_text}.
connection._process_request('NotifyWorkers', dicts)
connection was defined as below:
def Connection(variable):
return MTurkConnection(
aws_access_key_id = variable.aws_access_key_id
, aws_secret_access_key = variable.aws_secret_access_key
, host = variable.aws_hostname
).
This is the errors log:
#
I 2011-05-08 20:53:39.367
--------------code run form here------------
#
D 2011-05-08 20:53:39.381
using calc_signature_1
#
D 2011-05-08 20:53:39.381
Canonical: GET
Mon, 09 May 2011 03:53:39 GMT
/
#
D 2011-05-08 20:53:39.381
Method: GET
#
D 2011-05-08 20:53:39.382
Path: /?Action=NotifyWorkers&AWSAccessKeyId=AKIAJ6ZC7KOCL36JHNRA&MessageText=hi%20the%20linh1%20this%20is%20second%20mail.&SignatureVersion=1&Subject=email%202%20form%20mturk&Timestamp=2011-05-09T03%3A53%3A39&Version=2006-10-31&WorkerId=A253WARSJG1UGP&Signature=9b6oHHZIS87kbro/A1Qh88SWQX8%3D
#
D 2011-05-08 20:53:39.382
Data:
#
D 2011-05-08 20:53:39.382
Headers: {'Date': 'Mon, 09 May 2011 03:53:39 GMT', 'Content-Length': '0', 'Authorization': u'AWS AKIAJ6ZC7KOCL36JHNRA:CgmpZWKboPnkis5iPjtYwI0cDGI=', 'User-Agent': 'Boto/1.9b (linux2)'}
#
D 2011-05-08 20:53:39.382
Host: None
#
D 2011-05-08 20:53:39.382
establishing HTTP connection.
我已經設置AWS主機名= mechanicalturk.sandbox.amazonaws.com
我使用沙盒模式。
我仍然不能發送電子郵件給工作人員。
我都儘量遵循這個程序:https://github.com/johnjosephhorton/TurkAdmin或使用該工具:https://turkadmin-jjh.appspot.com/
但它不工作。
所以,請幫助我。
感謝
這與App Engine有什麼關係? – 2011-05-09 19:10:59