A program to recognize and reward our most engaged community members
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="7.0.001"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="7.0.001" expanded="true" name="Process"> <process expanded="true"> <operator activated="true" class="set_macro" compatibility="7.0.001" expanded="true" height="68" name="Put Drug Name Here" width="90" x="45" y="34"> <parameter key="macro" value="drugName"/> <parameter key="value" value="aspirin"/> </operator> <operator activated="true" class="web:get_webpage" compatibility="7.0.000" expanded="true" height="68" name="Get Page" width="90" x="246" y="34"> <parameter key="url" value="https://rxnav.nlm.nih.gov/REST/drugs"/> <list key="query_parameters"> <parameter key="name" value="%{drugName}"/> </list> <list key="request_properties"> <parameter key="Content-Type" value="application/json"/> <parameter key="Accept" value="application/json"/> </list> <description align="center" color="transparent" colored="false" width="126">Making sure I ask for JSON data in response rather than default XML as it's easier to handle with JSON to Data operator.</description> </operator> <operator activated="true" class="text:json_to_data" compatibility="7.0.000" expanded="true" height="82" name="JSON To Data" width="90" x="380" y="34"/> <connect from_op="Get Page" from_port="output" to_op="JSON To Data" to_port="documents 1"/> <connect from_op="JSON To Data" from_port="example set" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>