Vision6 JSON-RPC Client
This is a Promise based javascript JSON-RPC client for the Vision6 Email Marketing application.
The Vision6 API Developer documentation can be found here.
Installing
npm install --save vision6-jsonrpc-client
Using
Example:
const Vision6 = ; var api_key = 'your_vision6_api_key';var vision6 = api_key; vision6 ;
You must instantiate a new Vision6 object and specify the api key in that call or you will get an exception.
Methods
Wrapped Methods
vision6.searchLists([criteria, limit, offset, sort_by, sort_order])
Unwrapped Methods
At the time of writing there are very few wrapped API methods implemented
in this package, however you can instantiate any API method by using .call()
.
Let's try the not yet wrapped API method, getContactById:
var list_id = 123;var contact_id = 456; vision6 ;