Feel free to download and mess around with this app, it may or may not be updated regularly, when it is we will publicise on our twitter feed (@BlueVia)

Get your Node.js environment prepared

The sample has been tested with Node.js v0.4.12 and should work with v0.4.x . It needs 5 node modules that can be installed with ‘npm’:

plus the files

from https://github.com/alfredwesterveld/node-auth.git:

Setup and personal settings

At the beginning of ‘server.js’ 4 variables have to be adapted

    // CONFIG

    var consumerKey    = "xxxxxxxxxxxxxxxx";
    var consumerSecret = "xxxxxxxxxxxx";
    var callbackUrl = "http://localhost:3000/accesstoken";
    var sandbox = "_Sandbox";

Add your BlueVia consumer credentials, check whether you keep on using port 3000 and change “_Sandbox” to "" if you want to test against the real mobile network

Start the server and use it

Go to the terminal and call

    node server.js

and then browse to http://localhost:3000 if yopu haven’t changed the port. It immediately will start with the authorization steps at BlueVia.