Skip to content

Instantly share code, notes, and snippets.

@puf
Last active August 29, 2015 14:23
Show Gist options
  • Save puf/c7b0612b6ffbb5f6b1cd to your computer and use it in GitHub Desktop.
Save puf/c7b0612b6ffbb5f6b1cd to your computer and use it in GitHub Desktop.
Create a Firebase email/password user in Java
new Firebase("https://yours.firebaseio.com/").createUser("user@domain.com", "password", new Firebase.ValueResultHandler<java.util.Map<String, Object>>() {
public void onSuccess(java.util.Map result) {
System.out.println("Successfully created user account with uid: " + result.get("uid"));
}
public void onError(com.firebase.client.FirebaseError firebaseError) {
System.err.ptinln("Error while creating user " + firebaseError);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment