Skip to content

Instantly share code, notes, and snippets.

@greenisus
Created October 18, 2011 16:12
Show Gist options
  • Save greenisus/1295843 to your computer and use it in GitHub Desktop.
Save greenisus/1295843 to your computer and use it in GitHub Desktop.
RSServer *server = [RSServer blank];
server.name = @"ck-test";
server.flavorId = [[RSFlavor first] id];
server.imageId = [[RSImage first] id];
[server post:nil completionBlock:^(CKResult *result) {
if ([result isSuccess]) {
[self alert:@"success!"];
} else {
[self alert:@"fail in completionBlock!"];
}
} errorBlock:^(CKResult *result) {
[self alert:@"fail in errorBlock!"];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment