Linvo API Client
This module will allow easy connection to the Linvo API server. It manages authentication on a system user level.
Basic usage
// import the modulevar LinvoAPI = ; // create the instance; call the function without arguments to connect to the main Linvo servervar api = host: "localhost" port: 3008 ; // Setup the authentication callback; this is called if we haven't authenticatedapioptions{ var EMAIL = "ivo@linvo.me" PASSWORD = "test"; // Call api.login to authenticate api;}; // At any moment, we can check api.user object to see if we have logged inif apiuser ; // The upper code will call proceed() when we have logged in as a valid Linvo user { console; }