This code sample illustrates how the OAuth 2.0 client credentials grant type can be used with the Jasmin Web API and Node.js.
To run this sample you need to do 4 simple steps:
Just smash nodejs.org in your browsers address bar and you should be good to go.
auth: {
user: '<CLIENT_ID>', // TODO : put your application client id here
pass: '<CLIENT_SECRET>' // TODO : put your application client secret here
},npm install
node app.js