goldylocks
v1.0.2
Published
Library to access Goldylocks invoicing system API
Downloads
16
Maintainers
Readme
nodejs-goldylocks-api
Node.js module to interact with Goldylocks invoicing software API.
const Goldylocks = require('goldylocks');
const gl = new Goldylocks();
gl.setup("empresademonstrativa","57b16c9ff6a18241f5aea066d3955c972e27ed48");
gl.request('artigos', {p:"teste"},{},(data, response) => {console.log(data)});
Install
$ npm install goldylocks
Usage
Setup using only Goldylocks alias and API key.
gl.setup("empresademonstrativa","57b16c9ff6a18241f5aaa066d3955c972e27ed48");
Make API request using GET data.
gl.request("artigos",{p:"blue"},{},data => {console.log(data)});
Make API request using GET and POST data.
gl.request("gerircliente",{p:"14"},{nome:"Cliente Teste"},data => {console.log(data)});