/ Published in: Objective C
This shows the basic process for sending an invite to a contact found through search or otherwise.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Entity *userEntity = [[Entity alloc]init]; userEntity.entityId=self.currentUser.entityId; Invite *invite = [[Invite alloc]init]; invite.sourceEntityId=userEntity.entityId; invite.destinationEntityId=thePersonYouWantToInvite.entityId; invite.message=@"Please add me as a contact!"; [self createUnityObject:invite withCompletionBlock:^(id object, bool succcess, NSString *errorMessage) { if(success) { // show success message } else { NSLog("%@",errorMessage); } }];