# goldylocks

> Library to access Goldylocks invoicing system API

Latest version **1.0.2** (published 2020-08-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install goldylocks
pnpm add goldylocks
yarn add goldylocks
bun add goldylocks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-08-10 |
| First published | 2020-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hélder Correia |
| Maintainers | helderrscorreia |
| Keywords | goldylocks, api, invoicing |

## Links

- npm: https://www.npmjs.com/package/goldylocks
- Repository: https://github.com/helderrscorreia/nodejs-goldylocks-api
- Homepage: https://github.com/helderrscorreia/nodejs-goldylocks-api#readme
- Issues: https://github.com/helderrscorreia/nodejs-goldylocks-api/issues
- npm.io page: https://npm.io/package/goldylocks

## Dependencies (1)

- [needle](https://npm.io/package/needle.md) ^2.5.0

## Recent versions

- 1.0.2 (latest) — 2020-08-10
- 1.0.1 — 2020-08-10
- 1.0.0 — 2020-08-10

## README

# nodejs-goldylocks-api
Node.js module to interact with [Goldylocks](https://www.goldylocks.pt) invoicing software API.

[![NPM](https://nodei.co/npm/goldylocks.png)](https://nodei.co/npm/goldylocks/)

```js
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](https://www.goldylocks.pt) *alias* and API key.
```js
gl.setup("empresademonstrativa","57b16c9ff6a18241f5aaa066d3955c972e27ed48");
```

Make API request using **GET** data.
```js
gl.request("artigos",{p:"blue"},{},data => {console.log(data)});
```

Make API request using **GET** and **POST** data.
```js
gl.request("gerircliente",{p:"14"},{nome:"Cliente Teste"},data => {console.log(data)});
```

---
_Source: https://npm.io/package/goldylocks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
