0.5.2 • Published 8 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
8 years ago
0.5.1
8 years ago
0.5.0
8 years ago
0.4.12
8 years ago
0.4.11
8 years ago
0.4.10
8 years ago
0.4.9
8 years ago
0.4.8
8 years ago
0.4.7
8 years ago
0.4.6
8 years ago
0.4.5
8 years ago
0.4.4
8 years ago
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
9 years ago
0.3.1
9 years ago
0.3.0
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.0
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago