Last active
August 29, 2015 14:23
-
-
Save puf/c7b0612b6ffbb5f6b1cd to your computer and use it in GitHub Desktop.
Create a Firebase email/password user in Java
This file contains 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
new Firebase("https://yours.firebaseio.com/").createUser("[email protected]", "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