@app.route("<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def node_transmissions(node_id):
exp = Experiment(session)<EOL>direction = request_parameter(parameter="<STR_LIT>", default="<STR_LIT>")<EOL>status = request_parameter(parameter="<STR_LIT:status>", default="<STR_LIT:all>")<EOL>for x in [direction, status]:<EOL><INDENT>if type(x) == Response:<EOL><INDENT>return x<EOL><DEDENT><DEDENT>node = models.Node.query.get(node_id)<EOL>if node is None:<EOL><INDENT>return error_response(error_type="<STR_LIT>")<EOL><DEDENT>transmissions = node.transmissions(direction=direction, status=status)<EOL>try:<EOL><INDENT>if direction in ["<STR_LIT>", "<STR_LIT:all>"] and status in ["<STR_LIT>", "<STR_LIT:all>"]:<EOL><INDENT>node.receive()<EOL>session.commit()<EOL><DEDENT>exp.transmission_get_request(node=node, transmissions=transmissions)<EOL>session.commit()<EOL><DEDENT>except Exception:<EOL><INDENT>return error_response(<EOL>error_type="<STR_LIT>",<EOL>status=<NUM_LIT>,<EOL>participant=node.participant,<EOL>)<EOL><DEDENT>return success_response(transmissions=[t.__json__() for t in transmissions])<EOL>
Get all the transmissions of a node.

    The node id must be specified in the url.
    You can also pass direction (to/from/all) or status (all/pending/received)
    as arguments.