Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. YoCoin Wallet Technical Task
  2.  
  3.  
  4. Pages:
  5. Login Page (Initial page)
  6. - Image Background (dark) and logo
  7. - Email and Password fields, button «Log In»
  8. - Text under «Log In» Button with QR code reading action
  9.  
  10. If login with email+password, action:
  11. (Everything encoded in JSON)
  12. POST Action: https://walletapi.yocoin.org/api/auth
  13. Body Parameters: {email, password}
  14. Response: {result(bool), errortext(null if result==true),userid(32char string), token(64char string}
  15.  
  16. %TOKEN% - 64char string with random symbols
  17.  
  18. If logged with QR code (QR code contain token, QR format: «token:%TOKEN%»)
  19. POST Action: https://walletapi.yocoin.org/api/validatetoken
  20. Body Parameters: {token}
  21. Response: {result(bool), errortext(null if result==true),userid(32char string), token(64char string}
  22.  
  23. Error handle as simple alert with title: Error title and text from «errortext» field)
  24.  
  25. If result==true, save userid and token into local storage(no SQL)
  26.  
  27.  
  28.  
  29. If user not logged in, show Login page, else show tabbed screen with 2 tabs:
  30. Dashboard
  31. - User total balance in YoCoin
  32. - List of recent transactions, showing 15 at start, autoload 10 more when scrolled to bottom
  33. Send (Form)
  34. - From (choose account from list)
  35. - To (textfield)
  36. - Amount
  37.  
  38. Technical description will be later.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement