Skip to content

Instantly share code, notes, and snippets.

@olegflo
Created October 21, 2012 08:46
Show Gist options
  • Select an option

  • Save olegflo/3926396 to your computer and use it in GitHub Desktop.

Select an option

Save olegflo/3926396 to your computer and use it in GitHub Desktop.
qbdoc
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