Created
December 17, 2015 18:31
-
-
Save niftynei/9ee52555351c4883f7fc to your computer and use it in GitHub Desktop.
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
public class CreateUserRequest extends NetworkRequest<User> { | |
// ... | |
@Override | |
public User onMakeRequest() { | |
String bearerString = ClientAuthManager.get().createBearerString(); | |
// Make a request to create a user object. | |
User user = EoApp.getAppContext().getClientRequestManager().getAuthApiService().createUser(bearerString, mNewUser); | |
EoLog.setUserId(user.getMixpanelId()); | |
// Make a request to fetch the user's token | |
ClientAuthManager.get().fetchUserToken(mNewUser); | |
return user; | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment