Skip to content

Instantly share code, notes, and snippets.

@tmtk75
Created March 24, 2014 05:35
Show Gist options
  • Select an option

  • Save tmtk75/9734670 to your computer and use it in GitHub Desktop.

Select an option

Save tmtk75/9734670 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
require("node-jquery-xhr");
kii = require("./KiiSDK.js").create();
var appid = "xxxxxxxx",
appkey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
kii.Kii.initializeWithSite(appid, appkey, kii.KiiSite.US);
var username = "qyArFPHZu1",
password = "TcRlGqkzsX";
var user = kii.KiiUser.userWithUsername(username, password);
user.register({
success: function(user) {
console.log("success", user.getUUID());
},
failure: function(user, errmsg) {
console.log(errmsg);
}
});
{
"dependencies": {
"node-jquery-xhr": "1.8.3"
},
"engines": {
"node": "0.10.26"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment