Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ## Register API
- /*------ CODE --------- */
- ### Return Data:
- $data = [
- 'status' => true, # or false
- 'message' => "OTP has been sent" ## or validation error
- ];
- ## Register API Verification
- /*------ CODE --------- */
- ### Return Data:
- $data = [
- 'status' => true, # or false
- 'message' => [
- 'userid' => 1, ## User ID of the User
- 'name' => 'Udipta',
- ] # or OTP error
- ];
- ## Login
- /*------ CODE --------- */
- ### Return Data:
- $data = [
- 'status' => true, # or false
- 'message' => "OTP has been sent" ## or validation error
- ];
- ## Login API Verification
- /*------ CODE --------- */
- ### Return Data:
- $data = [
- 'status' => true, # or false
- 'message' => [
- 'userid' => 1, ## User ID of the User
- 'name' => 'Udipta',
- ] # or OTP error
- ];
- ## User Profile Detail
- /*------ CODE --------- */
- ### Return Data:
- $data = [
- 'status' => true, # or false
- 'message' => [
- 'userid' => 1, ## User ID of the User
- 'profile' => Users::find($id),
- ],
- ];
- ### List Coins and Funds of particular user:
- /*------ CODE --------- */
- $coin_with_fund_array = [
- 'coin_name' => 'ETH',
- 'coin_id' => 1,
- 'wallet_balance' => 0.001,
- ];
- ## Return data
- $data = [
- 'status' => true, # or false
- 'message' => [
- 'userid' => 1, ## User ID of the User
- 'wallets' => $coin_with_fund_array,
- ] # or OTP error
- ];
Advertisement
Add Comment
Please, Sign In to add comment