Sample node.js app that demonstrates vLine API integration.
In order for the application to run you need to install node.js. You can install node.js with an installer or package manager.
Getting Started
- Sign up for a vLine developer account and create your vLine service.
- Make note of your
API Secret
on theService Settings
tab in the vLine Developer Console. - Clone this repository.
- Add your
Service ID
andAPI Secret
to theroutes/routehandler.js
file. - Install dependencies using the Node Package Manager (
npm
):npm install
- Start the server:
npm start
- Open http://localhost:3000 in one regular browser window and one incognito window.
- Log in as different users in the two windows. The users (and passwords) are
defined in the
users.json
file in the root directory of this example. - Click on a username to call that user.