Skip to content

Instantly share code, notes, and snippets.

@satoshikumano
Forked from sbin/gist:6218683
Created August 13, 2013 07:41
Show Gist options
  • Save satoshikumano/6218747 to your computer and use it in GitHub Desktop.
Save satoshikumano/6218747 to your computer and use it in GitHub Desktop.
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();
// Do something with the reference.
},
failure: function(group, error) {
// handle error
}
});
},
failure: function(group, error) {
// handle error
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment