Skip to content

Instantly share code, notes, and snippets.

@nwg
Created February 1, 2012 21:38
Show Gist options
  • Select an option

  • Save nwg/1719630 to your computer and use it in GitHub Desktop.

Select an option

Save nwg/1719630 to your computer and use it in GitHub Desktop.
SocializeEntity *entity = [[[SocializeEntity alloc] init] autorelease];
entity.key = @"myKey";
entity.name = @"My Name";
entity.meta = @"some meta data about this entity";
[socialize createEntity:entity];
-(void)service:(SocializeService*)service didFail:(NSError*)error{
NSLog(@"%@", error);
}
//if the delete is successful
-(void)service:(SocializeService*)service didCreate:(id<SocializeObject>)object{
NSLog(@"entity created");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment