-
-
Save satoshikumano/6218747 to your computer and use it in GitHub Desktop.
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(); | |
// 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