You may find working example and more detailed description published here in Inflectra GitHub repository:

 

https://github.com/Inflectra/rapise-samples/tree/master/CallingNodeJs