Base URL :: http://3.111.152.184:8008/api/v1/
enc dec :: http://3.111.152.184/studeasy/encryption-decryption
secretKey :: 8lG03FuKFb4E8h58vt1zE9BILE8IbHNd
IV :: 8lG03FuKFb4E8h58
Header Parameters :-api_key = kZDrqpjT3nSaHS4G, app => U, token => ex. gffgdfgdf
NOTE : When you get UNAUTHORIZED(401) status code from server Then logout user forcefully
NOTE : Login Type = "S" for simple & "F" for facebook & "G" for google & "A" for Apple
NOTE : Device Type = "A" for android & "I" for ios & "W" for website
NOTE : Gender = "M" for Male and "F" for Female
NOTE : user_type = : U - Student
| No | URL | Method | Mandatory Parameter | Optional Parameter | Response Code | Notes | |||||||||||||||||||||||||||||||||||||||||||
| User API | |||||||||||||||||||||||||||||||||||||||||||||||||
| 1 | user/signup | POST | country_code,mobile_no,device_token | device_type['A' OR 'I' OR 'W'],login_type['S' OR 'G' OR 'F'] | HTTP Code: OK (200) Code : 1,2,0,4 |
Code 4 = to verify otp
OTP = 1111 |
|||||||||||||||||||||||||||||||||||||||||||
| 2 | user/stateBoard | POST | HTTP Code: OK (200) Code : 1,2,0 |
This api is used to Add User Personal Information Data | |||||||||||||||||||||||||||||||||||||||||||||
| 3 | user/grade | POST | board_id | HTTP Code: OK (200) Code : 1,2,0 |
This api is used to Add User Personal Information Data | ||||||||||||||||||||||||||||||||||||||||||||
| 4 | user/schools | POST | state_board | HTTP Code: OK (200) Code : 1,2,0 |
This api is used to Add User Personal Information Data | ||||||||||||||||||||||||||||||||||||||||||||
| 5 | user/personalInfo | POST | first_name,last_name,state_board,grade,school | profile_image,email,school_name | HTTP Code: OK (200) Code : 1,2,0 |
This api is used to Add User Personal Information Data
If school is not exist in school list then please send school_name="school name " and school=0 and if school exist in list then send school_name="" and school=school_id if you want to change mobile number then send mobile_no and user_id also and if change school, grade, state, mobile_no then plese chaeck these variables "should_change_mobile": true, "should_change_school": false, "should_change_grade": false, "should_change_state_board": false |
|||||||||||||||||||||||||||||||||||||||||||
| 6 | user/otpVerify | POST | device_token,country_code,mobile_no,otp | HTTP Code: OK (200) Code : 1,2,11,12,0 token : ex- jfgnnhhjsdbzdk |
code 1=go to home page code 11=go to profile update page code 12=go to my profile page OTP = 1111 |
||||||||||||||||||||||||||||||||||||||||||||
| 7 | user/resendOTP | POST | device_token,country_code,mobile_no | user_id | HTTP Code: OK (200) Code : 1,2,0 |
send user_id only when user want to change mobile and then he used resend otp feature other wise user_id never send | |||||||||||||||||||||||||||||||||||||||||||
| 8 | user/home | POST | user_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||
| 9 | user/subjectDetail | POST | user_id,subject_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||
| 10 | user/chapterDetail | POST | user_id,chapter_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||
| 11 | user/getQuestions | POST | user_id,chapter_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||
| 12 | user/getVideo | POST | user_id,chapter_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||
| 13 | user/search | POST | user_id,search | HTTP Code: OK (200) Code : 1,2,0 |
search can be:'' | ||||||||||||||||||||||||||||||||||||||||||||
| 14 | user/getChapterByTag | POST | user_id,tag_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||
| 15 | user/addTicket | POST | user_id,issue_category,title,description | HTTP Code: OK (200) Code : 1,2,0 |
issue_category can be: Video, Audio, Quiz Status can be : Raised, Working, Solved |
||||||||||||||||||||||||||||||||||||||||||||
| 16 | user/getAllTicket | POST | user_id | HTTP Code: OK (200) Code : 1,2,0 |
issue_category can be: Video, Audio, Quiz Status can be : Raised, Working, Solved |
||||||||||||||||||||||||||||||||||||||||||||
| 18 | user/updateWatchedVideo | POST | user_id,chapter_id,stop_time,is_fully_watched | HTTP Code: OK (200) Code : 1,2,0 |
stop_time can be hh:mm:ss format is_fully_watched can be : 0, 1 only |
||||||||||||||||||||||||||||||||||||||||||||
| 19 | user/getChapterVideos | POST | user_id,video_type | HTTP Code: OK (200) Code : 1,2,0 |
video_type=[continue,watched] | ||||||||||||||||||||||||||||||||||||||||||||
| 21 | user/getProfile | POST | user_id | HTTP Code: OK (200) Code : 1,2,0 |
if change school, grade, state, mobile_no then plese chaeck these variables
"should_change_mobile": true, "should_change_school": false, "should_change_grade": false, "should_change_state_board": false |
||||||||||||||||||||||||||||||||||||||||||||
| - | user/delete | POST | user_id | HTTP Code: OK (200) Code : 1,2,0 |
If user want to delete his account permanently | ||||||||||||||||||||||||||||||||||||||||||||
| - | user/logout | POST | user_id | HTTP Code: OK (200) Code : 1,2,0 |
|||||||||||||||||||||||||||||||||||||||||||||