エラーログは次のとおりです ReferenceError: callback is not defined at Object. (C:\Users\Username\Desktop\JsGame-master\APP.JS:137:45) Module._compile (module.js:413:34) で Object.Module._extensions..js (module.js:422) :10) Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) Function.Module.runMain (module.js:447:10) at startup (node .js:146:18) で node.js:404:3
var connection = Syncano({apiKey: 'abc',
userKey: 'abc',
defaults: {
instanceName: "interactiveboard",
className: "players"
}
});
var DataObject = connection.DataObject;
DataObject .please() .list() .then(function(res) {
console.log(res);
});
var dataObject = {
avatar: "Geralt",
nickname: "Rivia",
email:"whatevershit@gmail.com"
};
DataObject.please().create(DataObject).then(callback);