Skip to content

Instantly share code, notes, and snippets.

@Rich86man
Created September 13, 2012 17:56
Show Gist options
  • Save Rich86man/3716225 to your computer and use it in GitHub Desktop.
Save Rich86man/3716225 to your computer and use it in GitHub Desktop.
- (void)purchaseBook:(ZOBook*)aBook
{
NSDictionary * params = @{ @"book_id" : aBook.serverId };
ZORequestExecutor * request = [ [ZORequestExecutor sharedFactory ] executorWithDelegate: self
resource: [NSString stringWithFormat: @"%@/%@/purchase", self.resourcePath, aBook.serverId]
params: nil ];
[ request post ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment