Skip to content

sebmill/vision6-nodejs-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vision6 NodeJS Client

This Vision6 client is dependency-free and promised-based. It is modelled of Vision6's PHP client implementation.

The Vision6 API Developer documentation can be found here.

Installing

npm install --save vision6-nodejs-client

Using

Example:

const Vision6 = require('vision6-nodejs-client');

const api_key = 'API_KEY';
const v6 = new Vision6(api_key);

v6.invokeMethod('searchLists')
    .then(function (lists) {
        console.log(`Found ${lists.length} lists for this account.`);
    })
    .catch(function (err) {
        console.error(err);
    });

The example shown above demonstrates how any method can be invoked. Similar to the PHP client, a number of optional arguments can be passed onto the function which will be used for the method invoked.

Methods

Unwrapped Methods

  • Vision6.invoke(method, [optional_arg1, optional_arg2, ...])

About

A dependency-free NodeJS Vision6 client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors