This repository contains simple example how to send data to stream in the facility. The example is written using JavaScript and require Node.js.
- Open folder using your code editor.
- Navigate to
main.jsand open it. - On top of the file there is block with global variables. Replace those variables according to your environment:
// update values below according to your environment
const BASE_PATH = 'https://tandem.autodesk.com/api/v1';
const FACILITY_URN = 'YOUR_FACILITY_URN';
const AUTH_TOKEN = 'YOUR_AUTHORIZATION_TOKEN';
const TIMEOUT = 5;- Review and update
streamDataTemplatevariable as needed. This defines data to be send to the streams. Note You need to use stream keys according to your facility. Easiest way to get stream keys is to use Streams - Import/Export Connections command. It exports stream information to CSV file. The key of the stream is stored under fullId column. - Save your changes.
Execute using npm start. Use Ctrl+C to stop the script.