Advertisement
Guest User

Untitled

a guest
Jul 8th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. [Route("/me/login/")]
  2. public class LoginRequest : IReturn<LoginResponse>
  3. {
  4. public string password { get; internal set; }
  5. public string username { get; internal set; }
  6. }
  7.  
  8. public class LoginResponse
  9. {
  10. public string token { get; set; }
  11. }
  12.  
  13. client.PostAsync(new LoginRequest { username = email, password = password });
  14.  
  15. {
  16. "non_field_errors": [
  17. "Unable to login with the given credentials."
  18. ]
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement