Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YoCoin Wallet Technical Task
- Pages:
- Login Page (Initial page)
- - Image Background (dark) and logo
- - Email and Password fields, button «Log In»
- - Text under «Log In» Button with QR code reading action
- If login with email+password, action:
- (Everything encoded in JSON)
- POST Action: https://walletapi.yocoin.org/api/auth
- Body Parameters: {email, password}
- Response: {result(bool), errortext(null if result==true),userid(32char string), token(64char string}
- %TOKEN% - 64char string with random symbols
- If logged with QR code (QR code contain token, QR format: «token:%TOKEN%»)
- POST Action: https://walletapi.yocoin.org/api/validatetoken
- Body Parameters: {token}
- Response: {result(bool), errortext(null if result==true),userid(32char string), token(64char string}
- Error handle as simple alert with title: Error title and text from «errortext» field)
- If result==true, save userid and token into local storage(no SQL)
- If user not logged in, show Login page, else show tabbed screen with 2 tabs:
- Dashboard
- - User total balance in YoCoin
- - List of recent transactions, showing 15 at start, autoload 10 more when scrolled to bottom
- Send (Form)
- - From (choose account from list)
- - To (textfield)
- - Amount
- Technical description will be later.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement