If you are just interested in receiving events that have been published to the Watson IoT Platform within a Node-RED flow, the easiest way to do this is to use the ibmiot node that comes with the node-red-contrib-scx-ibmiotapp module. This module does not come with Node-RED by default, so you will need to:
- Click on the hamburger icon in the top right of the Node-RED dashboard
- Click Manage palette
- Click the Install tab in the User Settings fly out
- Type node-red-contrib-scx-ibmiotapp in the search box
- Click the Install button for the module
You may need to restart Node-RED in order for the ibmiot node to appear in the palette.

When you have added an instance of the ibmiot node to a flow, you need to make sure that you:
- Specify a value for the Authentication property of API Key
- Specify an API Key that you have created in your Watson IoT Platform Org
- Specify a value for the Input Type property of Device Event
You can define specific values for the Device Type, Device Id and Event properties if you are interested in specific events... or use wildcards. These values are used to construct the MQTT topic string that the node will subscribe to once it has connected.

Thanks.