0.5.2 • Published 9 years ago
node-kii-service v0.5.2
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);
});
0.5.2
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago
0.4.12
9 years ago
0.4.11
9 years ago
0.4.10
9 years ago
0.4.9
9 years ago
0.4.8
10 years ago
0.4.7
10 years ago
0.4.6
10 years ago
0.4.5
10 years ago
0.4.4
10 years ago
0.4.3
10 years ago
0.4.2
10 years ago
0.4.1
10 years ago
0.4.0
10 years ago
0.3.1
10 years ago
0.3.0
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.0
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago