Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. QBUUser *user = [QBUUser user];
  2. user.login = @"garry";
  3. user.password = @"garry5santos";
  4.  
  5. [QBRequest signUp:user successBlock:^(QBResponse *response, QBUUser *user) {
  6. // Success, do something
  7. } errorBlock:^(QBResponse *response) {
  8. // error handling
  9. NSLog(@"error: %@", response.error);
  10. }];
  11.  
  12. QBUUser *currentUser = [QBUUser user];
  13. currentUser.ID = 2569; // your current user's ID
  14. currentUser.password = @"garrySant88"; // your current user's password
  15.  
  16. [[QBChat instance] connectWithUser:user completion:^(NSError * _Nullable error) {
  17. NSLog(@"Error: %@", error);
  18. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement