This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |