GoogleOAuth

Below is a browsable image of the model.

  • For an executable version,
  • To view or save the MoML file for this model, click here.
GoogleOAuthmodel <h2>DE Director</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>startTime</td><td>&nbsp;</td><td>null</td></tr><tr><td>stopTime</td><td>&nbsp;</td><td>null</td></tr><tr><td>stopWhenQueueIsEmpty</td><td>false</td><td>false</td></tr><tr><td>synchronizeToRealTime</td><td>false</td><td>false</td></tr><tr><td>enforceMicrostepSemantics</td><td>false</td><td>false</td></tr></table> <h2>MicrostepDelay2</h2>Has no parameters. <h2>Const2</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>value</td><td>true</td><td>true</td></tr><tr><td>firingCountLimit</td><td>NONE</td><td>0</td></tr></table> <h2>Stop</h2>Has no parameters. <h2>JSONToToken</h2>Has no parameters. <h2>JavaScript</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>script</td><td>// Put your JavaScript program here.\\n// Add ports and parameters.\\n// Define JavaScript functions initialize(), fire(), and/or wrapup().\\n// Use valueOf(parameterName) to refer to parameters.\\n// In the fire() function, use get(parameterName, channel) to read inputs.\\n// Send to output ports using send(value, portName, channel).\\nfunction fire() {\\n  var authtoken = get(authCode, 0);\\n \\n  var accesstoken = requestAccess(&quot;google&quot;,\\n        &quot;609649675711-3u1oomfcjre4t3jvrnira4egg14ump0k.apps.googleusercontent.com&quot;, \\n        &quot;pr9-DmHhU4WEGGESmWb1mBOF&quot;, \\n        &quot;http://localhost:8078&quot;, \\n        authtoken);\\n\\n  var profile = readProtectedURL(&quot;https://www.googleapis.com/oauth2/v1/userinfo?alt=json&quot;, accesstoken);\\n\\n  send(profile, output, 0);\\n}</td><td>// Put your JavaScript program here.\\n// Add ports and parameters.\\n// Define JavaScript functions initialize(), fire(), and/or wrapup().\\n// Use valueOf(parameterName) to refer to parameters.\\n// In the fire() function, use get(parameterName, channel) to read inputs.\\n// Send to output ports using send(value, portName, channel).\\nfunction fire() {\\n  var authtoken = get(authCode, 0);\\n \\n  var accesstoken = requestAccess(&quot;google&quot;,\\n        &quot;609649675711-3u1oomfcjre4t3jvrnira4egg14ump0k.apps.googleusercontent.com&quot;, \\n        &quot;pr9-DmHhU4WEGGESmWb1mBOF&quot;, \\n        &quot;http://localhost:8078&quot;, \\n        authtoken);\\n\\n  var profile = readProtectedURL(&quot;https://www.googleapis.com/oauth2/v1/userinfo?alt=json&quot;, accesstoken);\\n\\n  send(profile, output, 0);\\n}</td></tr></table> <h2>SingleEvent</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>time</td><td>0.0</td><td>0.0</td></tr><tr><td>value</td><td>true</td><td>true</td></tr></table> <h2>RequestAuthorization</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>script</td><td>// Put your JavaScript program here.\\n// Add ports and parameters.\\n// Define JavaScript functions initialize(), fire(), and/or wrapup().\\n// Use valueOf(parameterName) to refer to parameters.\\n// In the fire() function, use get(parameterName, channel) to read inputs.\\n// Send to output ports using send(value, portName, channel).\\nfunction fire() {\\n  get(trigger, 0);\\n  requestAuth(&quot;google&quot;, &quot;609649675711-3u1oomfcjre4t3jvrnira4egg14ump0k.apps.googleusercontent.com&quot;, &quot;http://localhost:8078&quot;, true)\\n}</td><td>// Put your JavaScript program here.\\n// Add ports and parameters.\\n// Define JavaScript functions initialize(), fire(), and/or wrapup().\\n// Use valueOf(parameterName) to refer to parameters.\\n// In the fire() function, use get(parameterName, channel) to read inputs.\\n// Send to output ports using send(value, portName, channel).\\nfunction fire() {\\n  get(trigger, 0);\\n  requestAuth(&quot;google&quot;, &quot;609649675711-3u1oomfcjre4t3jvrnira4egg14ump0k.apps.googleusercontent.com&quot;, &quot;http://localhost:8078&quot;, true)\\n}</td></tr></table> <h2>Const</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>value</td><td>&quot;Code received! Please go back to Ptolemy.&quot;</td><td>&quot;Code received! Please go back to Ptolemy.&quot;</td></tr><tr><td>firingCountLimit</td><td>NONE</td><td>0</td></tr><tr><td>_flipPortsHorizontal</td><td>true</td><td>true</td></tr></table> <h2>MicrostepDelay</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>_flipPortsHorizontal</td><td>true</td><td>true</td></tr></table> <h2>Display</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>rowsDisplayed</td><td>10</td><td>10</td></tr><tr><td>columnsDisplayed</td><td>40</td><td>40</td></tr><tr><td>suppressBlankLines</td><td>false</td><td>false</td></tr><tr><td>title</td><td>&nbsp;</td><td>&nbsp;</td></tr></table> <h2>RecordDisassembler</h2>Has no parameters. <h2>HttpActor</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>path</td><td>/*</td><td>/*</td></tr><tr><td>timeout</td><td>30000L</td><td>30000L</td></tr><tr><td>requestedCookies</td><td>{}</td><td>{}</td></tr></table>