@app.route("<STR_LIT>", methods=["<STR_LIT:POST>", "<STR_LIT:GET>"])<EOL>@crossdomain(origin="<STR_LIT:*>")<EOL>def api_notifications():
event_type = request.values["<STR_LIT>"]<EOL>assignment_id = request.values.get("<STR_LIT>")<EOL>participant_id = request.values.get("<STR_LIT>")<EOL>db.logger.debug(<EOL>"<STR_LIT>", event_type, assignment_id<EOL>)<EOL>q.enqueue(worker_function, event_type, assignment_id, participant_id)<EOL>db.logger.debug("<STR_LIT>", len(q), "<STR_LIT:U+002CU+0020>".join(q.job_ids))<EOL>return success_response()<EOL>
Receive MTurk REST notifications.