12.8.0 • Published 8 years ago
linvo-api4-client v12.8.0
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 module
var LinvoAPI = require("linvo-api4-client");
// create the instance; call the function without arguments to connect to the main Linvo server
var api = new LinvoAPI({ host: "localhost", port: 3008 });
// Setup the authentication callback; this is called if we haven't authenticated
api.options.authenticate = function()
{
var EMAIL = "ivo@linvo.me",
PASSWORD = "test";
// Call api.login to authenticate
api.login(EMAIL, PASSWORD, function(err)
{
// on login; unless we have an err, it is successful
if (!err) proceed();
});
};
// At any moment, we can check api.user object to see if we have logged in
if (api.user) proceed();
// The upper code will call proceed() when we have logged in as a valid Linvo user
function proceed()
{
console.log("Linvo user", api.user);
}
12.8.0
8 years ago
12.7.0
9 years ago
12.6.2
9 years ago
12.6.1
9 years ago
12.6.0
9 years ago
12.5.0
9 years ago
12.4.0
9 years ago
12.3.2
9 years ago
12.3.1
9 years ago
12.2.0
9 years ago
12.1.0
9 years ago
12.0.0
9 years ago
11.0.0
9 years ago
10.1.0
9 years ago
10.0.1
9 years ago
10.0.0
9 years ago
9.7.0
9 years ago
9.6.0
9 years ago
9.5.0
9 years ago
9.4.1
9 years ago
9.4.0
9 years ago
9.3.0
9 years ago
9.2.0
9 years ago
9.0.0
9 years ago
8.4.0
9 years ago
8.3.0
9 years ago
8.2.0
9 years ago
8.1.1
9 years ago
8.1.0
9 years ago
8.0.0
10 years ago
7.0.4
10 years ago
7.0.3
10 years ago
7.0.2
10 years ago
7.0.1
10 years ago
7.0.0
10 years ago
6.0.11
10 years ago
6.0.10
10 years ago
6.0.9
10 years ago
6.0.8
10 years ago
6.0.6
10 years ago