Created
October 21, 2012 08:46
-
-
Save olegflo/3926396 to your computer and use it in GitHub Desktop.
qbdoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| QBUser user = new QBUser(); | |
| user.setLogin("indianajones"); | |
| user.setPassword("indianapassword"); | |
| user.setEmail("indiana@jones.com"); | |
| // pass QBUser instance into create (register) user request | |
| QBUsers.signUp(user, new QBCallbackImpl() { | |
| @Override | |
| public void onComplete(Result result) { | |
| // check if request has been successful | |
| // and result doesn't contain errors | |
| if (result.isSuccess()) { | |
| // expect to get QBUserResult instance | |
| QBUserResult userResult = (QBUserResult) result; | |
| } else { | |
| // otherwise handle error case | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment