Advertisement
Guest User

Untitled

a guest
May 24th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. /* Authenticate a User */
  2. Guid applicationId = new Guid("00000000-0000-0000-0000-00000000002a");
  3. LoginRequest request = new LoginRequest(applicationId, "bob@example.com", null, "secret");
  4. ClientResponse<LoginResponse, Errors> response = client.Login(request, null);
  5. User user = response.successResponse.user;
  6.  
  7. /* Retrieve User by Email Address */
  8. ClientResponse<UserResponse, Errors> response = client.RetrieveUserByEmail("bob@example.com");
  9. User user = response.successResponse.user;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement