# node-kii-service

> kii clould backend service management

Latest version **0.5.2** (published 2016-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-kii-service
pnpm add node-kii-service
yarn add node-kii-service
bun add node-kii-service
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.2 |
| Published | 2016-05-10 |
| First published | 2015-09-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Tai-Yi Kuo |
| Maintainers | b96705008, ctc316 |

## Links

- npm: https://www.npmjs.com/package/node-kii-service
- Repository: https://github.com/b96705008/node-kii-service
- Issues: https://github.com/b96705008/node-kii-service/issues
- npm.io page: https://npm.io/package/node-kii-service

## Dependencies (4)

- [async](https://npm.io/package/async.md) ^1.4.2
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [curlrequest](https://npm.io/package/curlrequest.md) ^0.5.3
- [is-my-json-valid](https://npm.io/package/is-my-json-valid.md) ^2.12.1

## Recent versions

- 0.5.2 (latest) — 2016-05-10
- 0.5.1 — 2016-05-09
- 0.5.0 — 2016-05-02
- 0.4.12 — 2016-04-22
- 0.4.11 — 2016-04-17
- 0.4.10 — 2016-03-13
- 0.4.9 — 2016-02-04
- 0.4.8 — 2015-12-13
- 0.4.7 — 2015-12-10
- 0.4.6 — 2015-12-10
- 0.4.5 — 2015-12-09
- 0.4.4 — 2015-12-01
- 0.4.3 — 2015-12-01
- 0.4.2 — 2015-11-21
- 0.4.1 — 2015-11-20
- … 8 more at https://npm.io/package/node-kii-service/versions

## README

# node-kii-service
kii backend management in nodejs 

## How to use

```
npm install node-kii-service
```

## Require modules

```
var Kii = require('node-kii-service'),
	kiiService = new Kii(APP_ID, APP_KEY);
```

## Load schema

```
kiiService.loadSchemas(path.join(__dirname, 'schemas'));
```

## Set admin token

```
kiiService.setAdminToken(ADMIN_ACCESS_TOKEN);

or

kiiService.getAdminToken(CLIENT_ID, CLIENT_SECRET, function (err, data) {
	console.log(data);
});
```

## Safe create and update

```
kiiService.safeCreateObject('Account', params, function (err, data) {
	...
});

KiiService.safeUpdateObject('Account', objectId, params, function (err, data) {
	...
});
```

## Query with operator ($gt, $gtn, $lt, $ltn, $ne)
```
kiiService.findAll('ProfileImage', {
	orderBy: '-time',
	MD5: 'xxxxxxxxx',
	name: '$ne:MyPhoto', // not "Myphoto"
	time: ['$gtn:1461694952', '$lt:1461857270'] // Range operator: 1461694952 <= time < 1461857270
	...											// url query: ?time=$gtn:1461694952&time=$lt:1461857270
}, function (err, data) {
	console.log(err || data);
});
```

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