12.8.0 • Published 6 years ago

linvo-api4-client v12.8.0

Weekly downloads
216
License
-
Repository
-
Last release
6 years ago

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

6 years ago

12.7.0

7 years ago

12.6.2

8 years ago

12.6.1

8 years ago

12.6.0

8 years ago

12.5.0

8 years ago

12.4.0

8 years ago

12.3.2

8 years ago

12.3.1

8 years ago

12.2.0

8 years ago

12.1.0

8 years ago

12.0.0

8 years ago

11.0.0

8 years ago

10.1.0

8 years ago

10.0.1

8 years ago

10.0.0

8 years ago

9.7.0

8 years ago

9.6.0

8 years ago

9.5.0

8 years ago

9.4.1

8 years ago

9.4.0

8 years ago

9.3.0

8 years ago

9.2.0

8 years ago

9.0.0

8 years ago

8.4.0

8 years ago

8.3.0

8 years ago

8.2.0

8 years ago

8.1.1

8 years ago

8.1.0

8 years ago

8.0.0

8 years ago

7.0.4

8 years ago

7.0.3

8 years ago

7.0.2

8 years ago

7.0.1

8 years ago

7.0.0

8 years ago

6.0.11

8 years ago

6.0.10

8 years ago

6.0.9

8 years ago

6.0.8

8 years ago

6.0.6

8 years ago