Skip to content

Instantly share code, notes, and snippets.

var group1 = new KiiGroup.groupWithName("MyGroup");
group1.save({
success: function(savedGroup) {
// uri of the group.
var uri = savedGroup.objectURI();
// create another instance of group references group1
var group2 = new KiiGroup.groupWithURI(uri);
group2.refresh({
success: function(refreshedGroup) {
var groupName = refreshedGroup.getName();