List of available web services

/register-Changed the params
/registerUser-Changed the params
/login-Changed the params
/reSignup-Changed the params
/verifyPin
/CCAuth
/getNewCode - Changed the params
/getTos
/resetPhone
/call
/saveNotifications* -Changed the params
/getNotifications - Updated Doc
/getHODPilot
/addCard
/getTrackers- Updated Doc
/saveTrackers -Changed the params
/getTrackerHistory- Updated Doc
/getWallets- Updated Doc
/setGoal- Updated Doc
/endsession- Updated Doc
/updatePhone- Updated Doc
/getReports- Updated Doc (Only for web)
/updateUser- Updated Doc (Only for web)
/getCategoryData- Updated Doc
/findMyExpert- returning new params
/generateChecksumWAP- Updated Doc
/getDynamicNotifications- Updated Doc
/updateDynamicNotifications- Updated Doc
/updateFavourite
/updateImage
/getExpertRecommendation
/cancelnow
/rateNow
/updategcm
/getRatingPending
/checkhodbalance
/calibratemeters
/getAllReports
/getMoodWheel
/saveMoodWheel
/getShareTemplate
/userBuyProduct
/userRedeemVoucher

Dashboard Services


/addDoctor- Changed params
/addMembership- Dashboard
/addRegistration- Dashboard
/addSpecialization- Dashboard
/addService- Dashboard
/addHealthSubCategory- Dashboard
/getHealthCatgories- Dashboard
/addPartner- Dashboard
/getPartnerList- Dashboard
/addProduct- Dashboard
/addBankAcc
/addHodAsset
/sendanemailService

Doctor Services


/docLogin
/getNewCode
/resetPin
/onoff
/resetEmail
/updatePhoneDoc
/resetPhoneDoc
/updateFavourite
/updateImage
/addBankAcc
/getReportMobile
/getRecommendationRequestCheck
/saveRecommendationResponse
/RequestCallPush
/cancelnow
/endConsultation
/rateNow
/updategcm
/getCallLog
/getMsgLog
/getRatingPending
/checkhodbalance
/placeWithdrawlRequest
/editProfileRequest

User app Services


/registerUser
/loginUser
/getHodsNearMe
/findMyExpert
/linkUserHod
/getNewCode
/calibratemeters
/updateFavourite
/getCategoryData - Returns the categories and it's sub-categories
/RequestCallPush
/getAllReports
/updateFbId
/userDoctorFavourites
/userCallSummary
/userProductFavourites

NEW

/createNewSession
/emailVerification
/assignVouchers
/hodLatLong

/register

Params to pass:

user_employeeId - the employee ID of the user as per his employment records (alpha numeric)
user_firstname - as string
user_lastname- as string
user_email - as string
user_mobile - 10 digit mobilen number, prevalidated, without a preceeding "0"
user_dob - date in format of "MM-DD-YYYY"
user_gender - as string (1 character only) - "M" or "F"
user_profile_pic - URL as string.
hod_id - URL as string.

curl Example

$curl --data "user_employeeId=abcdef&user_firstname=abc&user_lastname=def&user _email=sai@saiew2s.com&user_mobile=000000008&user_dob=06-08-1982&user_gender=M& user_profile_pic=www.google.com&hod_id=1" http://dev-hodlife.rhcloud.com/register

/Expected Output

Now returns a "session" value which has to be passsed along with other webservices

On Success:: {"errors": [], "data": {"status": "1", "user_emp_id": "xx", "user_mew_score" : 0.0, "user_id_uuid": "xx-5daa-xx-9cdf-xx", "user_id": xx, "u ser_firstname": "xx", "user_dob": "xx-xx-xxxx", "user_lastname": "xx", "modhas h": "xx", "user_rating": 5.0, "user_mobile": "xxxxx", "user_update_dttm": "", "user_profile_pic_url": "x", "user_gender": "x", "user_pin": 2 121, "balance": 2000, "user_email": "xyz@abc.com","session": "akdhaddioiqdoh=="}}

/login

Params to pass:

user_mobile - as string (10 digits) without a leading "0"
hod_id - URL as string.

curl Example

$curl --data "user_mobile=9999999999&hod_id=1" http://dev-hodlife.rhcloud.com/login

/Expected Output

Now returns a "session" value which has to be passsed along with other webservices

On Success:: {"errors": [], "data": {"status": "1", "user_emp_id": "xxx", "user_mew_score" : "X.0", "user_id_uuid": "xxxxx-3f64-4b72-8sxc-2bsuvad75fe85", "user_id": xx, "user_firstname": "abc", "user_dob": "1982-xx-xx", "user_lastname": "def", "modh ash": "xxxx", "user_rating": "5.0", "user_mobile": "xxxxxx", "user_update_dt tm": "2015-xx-xx 14:45:24.878000+05:30", "user_profile_pic_url": "xxx ", "user_gender": "M", "user_pin": xxx, "user_email": "xxx@ttt.in", "balance": "2000.0","session": "akdhaddioiqdoh=="}}

/reSignup

Params to pass:

user_id - as returned
user_mobile - as string (10 digits) without a leading "0"
user_dob - as MM-DD-YYYY
hod_id - URL as string.

curl Example

$ curl --data "user_id=39&user_mobile=8886200048&user_dob=08-08-1982&hod_id=1" http://dev-hodlife.rhcloud.com/reSignup

/Expected Output

Now returns a "session" value which has to be passsed along with other webservices

On Success:: {"errors": [], "data": {"status": "1", "user_pin": xyzz, "modhash": "xxxxx ", "use r_id": "x","session": "akdhaddioiqdoh=="}}

/verifyPin

Params to pass:

user_modhash - string, as retured from userSession
user_pin - 4 digit pin (NUMERIC)

curl Example

$ curl --data "user_modhash=w3k2Y63c0l78ns4r+90x-=&user_pin=xxxx" http://dev- hodlife.rhcloud.com/verifyPin

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "modhash": "xxxxxxxxx"}}

/ccauth

Params to pass:

user_card_hash - SHA1 hashed string of (card + salt)

curl Example

$ curl --data "user_card_hash=xxxxxxxxxxxxxxxxxxxxxxxxxxx" http://dev- hodlife.rhcloud.com/ccauth

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"user_mew_score": "x.x", "u ser_emp_id": "xxx", "user_id_uuid": "c7nd0x47-f2p6-4b6q-b7al-c8xxxxfcivda", "use r_id": xx, "user_firstname": "xxxxxx", "user_dob": "YYYY-MM-DD", "user_lastname": " xxxxxx", "user_rating": "x.0", "user_mobile": "xxxxxxxxxx", "user_update_dttm": "2014-04-10 11:44:00.586000+05:30", "user_profile_pic_url": base64 string, "user_gender": "x", "modhash": "x", "user_email": "xxxx@xxxx.com","user_pin":xxxx}]}}

/getNewCode

Params to pass:

user_id - string, as retured from response of Signup
user_type - "D" for doctor and "U" for user

curl Example

$ curl --data "user_id=xxxxx&user_type=U" http://dev- hodlife.rhcloud.com/getNewCode

/getTos

Params to pass:

none

curl Example

$ curl --data "" http://dev- hodlife.rhcloud.com/getTos

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"description": "description text about the heading", "sequence": 1, "id": 1, "activeFlag": "Y", "heading": "TERMS & CONDITIONS OF USE"}]}}

/resetPhone

Params to pass:

user_phone

curl Example

$ curl --data "user_phone=XXXXXXXXXX" http://dev- hodlife.rhcloud.com/resetPhone

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/call

Params to pass:

phoneNumberUser - Ten digit
phoneNumberDoc - Ten digit
userName
hcpName
userId
hcpId
sessionId
historyId
userDocTrn

curl Example

$ curl --data "phoneNumberUser=xxxxxxxxxx&phoneNumberDoc=yyyyyyyyyy &userName=abc&hcpName=def&hcpId=xxx&userId=xxx&sessionId=adalkad==&historyId=x&userDocTrn=abc" http://dev-hodlife.rhcloud.com/call

/Expected Output

On Success:: {'errors': [],'data' : {'status':'1'}}

/saveTrackers

Params to pass:

userId - User ID of current user
sessionId - sessionID of current session
jsonData - Key Value pairs of ParameterID(TrackerID) : Parameter(Tracker) Value captured, separated by commas For example:

jsonData = "1:172" - For one Tracker
jsonData = "1:172,2:68.2" - For multiple Trackers

curl Example

$ curl --data "userId=1&jsonData=1:172,2:68&sessionId=abcd" http://dev-hodlife.rhcloud.com/saveTrackers

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "balance": "xxxx.0", "mew_score": "x.xx"}

/getNotifications

Params to pass:

user_id
hod_id

curl Example

$ curl --data "user_id=xx&hod_id=x" http://dev-hodlife.rhcloud.com/getNotifications

/Expected Output

returns answered = "1" if user already answered, or answered="0" if un-answered
returns showNextTracker = "Y" if you have to unlock next tracker, or answered="N" if you have to show next notification
returns notification_single_multiple = "M" if you have to accept multiple answers, "S" if you have to accept single answer, or "N" if nothing to capture

NEW ADDITIONS

appliesTo (FOR BACKEND ONLY, NOT RETURNED AS W/S RESPONSE) - A- All, GS- Gender Specific
returns uncheck_all = "Y" in asset_data if that option has to uncheck all other options, or uncheck_all="N" if not-necessary
returns has_asset_icons = "Y" in notification resp if that notifications options have images, or has_asset_icons="N" if that notification options have no images
returns option_asset_url = "url of the image" in asset_data if that option has image attached, or option_asset_url="" if no image
returns asset_type = "offer" in notification, if the notification is type of offer, and in asset data, it will return
[{"offer_id": "1", "offer_uuid": "c6fb311c-89a0-4d29-b278-dcdcd957625e", "offer_img_url": "http://healthmultiplex.com/img/offers/ihealthwatch01.png"}]
in asset data if that offer has image attached, or asset_data as none if no image



On Success:: { "kind": "notifications", "data": { "requestId": "ahd826", "children": [ { "notification_uuid": "062ebc70-99dd-482e-b758-6dd46fc395c1", "asset_data": "none", "answered": 1, "showNextTracker": "N", "notification_expiry": "2015-06-12 00:00:00+05:30", "notification_text": "Welcome to the HOD, your employee ID is approved.", "notification_seq_val": 1 }, { "notification_uuid": "b4df678f-f24e-416d-898e-4a568c3e026f", "asset_data": "none", "answered": 1, "showNextTracker": "N", "notification_expiry": "2015-06-12 00:00:00+05:30", "notification_text": "Tap ? to continue.", "notification_seq_val": 2 }, { "notification_uuid": "05173725-3fd3-4398-a2ed-c020fc7b2bca", "asset_data": [ { "asset_lname": "Bonsai", "asset_type": "HRA Question", "asset_fname": "Rashmi" } ], "answered": 0, "showNextTracker": "N", "notification_expiry": "2016-06-12 00:00:00+05:30", "notification_text": "We would like to introduce you to your HOD coach: ", "notification_seq_val": 3, "asset_type": "intro" }, { "notification_uuid": "05173725-3fd3-4398-a2ed-c020fc7b2bca", "asset_data": "none", "answered": 0, "showNextTracker": "N", "notification_expiry": "2016-06-12 00:00:00+05:30", "notification_text": "Before you kick start with trackers, let us get your medical history out of the way. Answering these simple questions will help you improve your mew score and also help you win balance for your HOD wallet. ", "notification_seq_val": 4 }, { "notification_uuid": "c2273569-09d9-4c4c-a685-43466c98c817", "answered": 0, "showNextTracker": "N", "notification_expiry": "None", "notification_text": "Now that we have the basics covered, lets keep improving your MEW score by answering some medical history questions (we promise it will be painless)", "option_data": [ { "option_text": "Heart Disease", "option_id": 1 }, { "option_text": "Stroke", "option_id": 2 }, { "option_text": "Kidney Disease", "option_id": 3 }, { "option_text": "Lung Disease", "option_id": 4 }, { "option_text": "Liver Disease", "option_id": 5 }, { "option_text": "Diabetes or pre-diabetes", "option_id": 6 }, { "option_text": "Osteoarthritis", "option_id": 7 }, { "option_text": "I dont have any history of medical conditions", "option_id": 8 }, { "option_text": "Medical condition not in the list", "option_id": 9, "asset_type": "HRA Question" } ], "notification_seq_val": 5 }, { "notification_uuid": "ee406cd6-ebe1-4f48-85ae-1ef3e99be51e", "answered": 0, "showNextTracker": "Y", "notification_expiry": "None", "notification_text": "You are made up of bits and pieces of your family. \\n\\n Telling us a little about them will help us help you even better.", "option_data": [ { "option_text": "My parent or sibling had heart disease before age 55", "option_id": 10 }, { "option_text": "My My parent or sibling has diabetes (type 1 or 2)", "option_id": 11 }, { "option_text": "My My parent or sibling has hypertension", "option_id": 12 }, { "option_text": "My My parent or sibling had an episode of stroke", "option_id": 13 }, { "option_text": "My My parentor siblings has/had cancer", "option_id": 14 }, { "option_text": "My I do not have a family history of medical conditions", "option_id": 15 } ], "notification_seq_val": 6 } ] } }

/getHODPilot

Params to pass:

hodId

curl Example

$ curl --data "hodId=x" http://dev-hodlife.rhcloud.com/getHODPilot

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"operator_fname": "xxxxx" "operator_image_url": "http://abc.abc.def.com/abcdef.jpg", "operator_about": "I am an amazing pilot let me take you through the best health experience of your life.", "operator_l ame": "Bonsai"}]}}

/addCard

Params to pass:

cardName - Example "VISA, MASTER etc"
cardNo - Encrypted Card number (following the formula) cardExp - Expiry date in format of (MM/DD) userId - UserID of current User to whose account the card is being added lastFour - Last 4 digits of the card

curl Example

$ curl --data "cardName=VISA&cardNo=xxxxxxx&crdExp=11/18&userId=xx&las tFour=xxxx" http://dev-hodlife.rhcloud.com/addCard

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "saved_asset_id": x, "saved_wallet_id": x}}

/saveNotifications

Params to pass:

userId
notificationId
sessionId
jsonData -
send Json Object if notification has responses
-or-
send the string "NA" if no responses (standard notifications)
Refer to Curl examples

curl Example if there are no responses (static notifications)

$ curl --data 'userId=xxxx¬ificationId=x&jsonData=NA&sessionId=abcd' http://dev-hodlife.rhcloud.com/saveNotifications

curl Example if there is Responses

$ curl --data 'userId=xxx¬ificationId=x&jsonData=1,2,3&sessionId=abcd' http://dev-hodlife.rhcloud.com/saveNotifications - Where 1,2,3 are the option_ids (returned while loading notifications)

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "mew_score": "4.08", "saved_notification_ id": xxx}}

/getTrackers

Params to pass:

userId

curl Example

$ curl --data "userId=xx" http://dev-hodlife.rhcloud.com/getTrackers

/Expected Output

returns showNextTracker = "Y" if the next tracker needs to be unlocked immediately, else showNextTracker="N" if you have to unlock the next notification (in sequence as tracked in local )
returns answered = "1" if user already Tracked, or answered="0" if un-Tracked
If the answered =1, then it will return a latest_value as the last tracked value that needs to be shown on the tracker screen, else, last_value returns 0.
returns canSetGoal=Y if that parameter has the ability to set a goal returns goal_value = value if there is a pre-set goal, or goal_value="NA" if there is no goal-set ability for that tracker

On Success:: {"kind": "notifications", "data": {"status": "1", "children": [{"param_name": "H EIGHT", "param_overlay_device_pic": "http://healthmultiplex.com/img/overlay/devi ceicons/height.jpeg", "param_cost": "150.0", "param_units": "Cms", "canSetGoal": "N", "param_value_icon_url": "http://healthmultiplex.com/img/trackers/heightval ue.png", "goal_value": "NA", "showNextTracker": "N", "param_overlay_description" : "", "answered": "1", "param_locked_icon_url": "http://healthmultiplex.com/img/ trackers/heightlock.png", "param_id": "1", "param_overlay_icon": "http://healthm ultiplex.com/img/overlay/icons/height.png", "latest_value": "172", "update_dttm" : "2015-07-30 18:42:46.379000+05:30", "param_unlocked_icon_url": "http://healthm ultiplex.com/img/trackers/height.png", "param_overlay_device_videolink": "https: //youtu.be/z1yqxYuX6ZE"}, {"param_name": "WEIGHT", "param_overlay_device_pic": " http://healthmultiplex.com/img/overlay/deviceicons/weight.jpeg", "param_cost": " 10.0", "param_units": "Kg", "canSetGoal": "Y", "param_value_icon_url": "http://h ealthmultiplex.com/img/trackers/weightvalue.png", "goal_value": "55.0", "showNex tTracker": "N", "param_overlay_description": "Your health and your weight are co nnected. BMI (Body Mass Index) is an indicator of obesity and is calculated from your height and weight. BMI tells you if you are normal body weight or overweig ht.According to the Centres for Disease Control and Prevention, if your body mas s index falls in the overweight or obese category, you are at a higher risk for various chronic diseases and conditions.", "answered": "1", "param_locked_icon_u rl": "http://healthmultiplex.com/img/trackers/weightlock.png", "param_id": "2", "param_overlay_icon": "http://healthmultiplex.com/img/overlay/icons/weight.png", "latest_value": "68", "update_dttm": "2015-07-30 18:42:54.045000+05:30", "param _unlocked_icon_url": "http://healthmultiplex.com/img/trackers/weight.png", "para m_overlay_device_videolink": "https://youtu.be/JpST7j27zCY"}, {"param_name": "BO DY WATER", "param_overlay_device_pic": "", "param_cost": "10.0", "param_units": "%", "canSetGoal": "N", "param_value_icon_url": "http://healthmultiplex.com/img/ trackers/bodywatervalue.png", "goal_value": "NA", "showNextTracker": "N", "param _overlay_description": " Your body consists of 50% - 75% of water and thus it is important for you to know your total body water. Not drinking enough water can increase your risk of kidney stones and, in women, urinary tract infections. It can also lower your physical and mental performance, and salivary gland function , and lead to dehydration.", "answered": "0", "param_locked_icon_url": "http://h ealthmultiplex.com/img/trackers/bodywaterlock.png", "param_id": "3", "param_over lay_icon": "http://healthmultiplex.com/img/overlay/icons/bodywater.png", "latest _value": "0", "update_dttm": "2015-07-30 18:43:01.359000+05:30", "param_unlocked _icon_url": "http://healthmultiplex.com/img/trackers/bodywater.png", "param_over lay_device_videolink": ""}, {"param_name": "BODY FAT", "param_overlay_device_pic ": "", "param_cost": "10.0", "param_units": "%", "canSetGoal": "N", "param_value _icon_url": "http://healthmultiplex.com/img/trackers/bodyfatvalue.png", "goal_va lue": "NA", "showNextTracker": "N", "param_overlay_description": " Percent body fat is an indicator of how much of fat is stored in your body. A minimum amount of body fat is necessary to carry out the regular functions. If your fat percent goes above the healthy range you are at a risk of obesity, which will affect yo ur immune system, hormonal function, metabolic functions and will increase your prevalence for metabolic disorders like heart diseases, dyslipidemia, blood pres sure and diabetes.", "answered": "0", "param_locked_icon_url": "http://healthmul tiplex.com/img/trackers/bodyfatlock.png", "param_id": "4", "param_overlay_icon": "http://healthmultiplex.com/img/overlay/icons/bodyfat.png", "latest_value": "0" , "update_dttm": "2015-07-30 18:43:11.266000+05:30", "param_unlocked_icon_url": "http://healthmultiplex.com/img/trackers/bodyfat.png", "param_overlay_device_vid eolink": ""}, {"param_name": "MUSCLE MASS", "param_overlay_device_pic": "", "par am_cost": "10.0", "param_units": "%", "canSetGoal": "N", "param_value_icon_url": "http://healthmultiplex.com/img/trackers/musclemassvalue.png", "goal_value": "N A", "showNextTracker": "N", "param_overlay_description": " Lean body mass consis ts of biologically active tissue including muscle, bone, nerve and vital organ t issue. These have a greater calorie-burning capacity than fat tissue. They have the ability to store glucose as glycogen thus decreasing the risk of diabetes an d related complications.", "answered": "0", "param_locked_icon_url": "http://hea lthmultiplex.com/img/trackers/musclemasslock.png", "param_id": "5", "param_overl ay_icon": "http://healthmultiplex.com/img/overlay/icons/musclemass.png", "latest _value": "0", "update_dttm": "2015-07-30 18:43:59.654000+05:30", "param_unlocked _icon_url": "http://healthmultiplex.com/img/trackers/musclemass.png", "param_ove rlay_device_videolink": ""}, {"param_name": "BONE MASS", "param_overlay_device_p ic": "", "param_cost": "10.0", "param_units": "Kg", "canSetGoal": "N", "param_va lue_icon_url": "http://healthmultiplex.com/img/trackers/bonemassvalue.png", "goa l_value": "NA", "showNextTracker": "N", "param_overlay_description": " Higher yo ur bone mass, higher your bone strength. If your bone mass is below normal, it i ncreases the risk of fractures on falling. As you age, you lose your bone mass. If this loss continues, osteopenia leads to osteoporosis. So the thicker your bo nes are, the longer it takes to get osteoporosis.", "answered": "0", "param_lock ed_icon_url": "http://healthmultiplex.com/img/trackers/bonemasslock.png", "param _id": "6", "param_overlay_icon": "http://healthmultiplex.com/img/overlay/icons/b onemass.png", "latest_value": "0", "update_dttm": "2015-07-30 18:44:23.089000+05 :30", "param_unlocked_icon_url": "http://healthmultiplex.com/img/trackers/bonema ss.png", "param_overlay_device_videolink": ""}, {"param_name": "WAIST CIRCUMFERE NCE", "param_overlay_device_pic": "http://healthmultiplex.com/img/overlay/device icons/waist.jpg", "param_cost": "10.0", "param_units": "Cms", "canSetGoal": "Y", "param_value_icon_url": "http://healthmultiplex.com/img/trackers/waistcircumfer encevalue.png", "goal_value": "-", "showNextTracker": "N", "param_overlay_descri ption": "Your waist measurement is an indicator of abdominal obesity. The excess fat stored in the abdomen puts you at an increased risk for heart disease and d iabetes.", "answered": "0", "param_locked_icon_url": "http://healthmultiplex.com /img/trackers/waistcircumferencelock.png", "param_id": "7", "param_overlay_icon" : "http://healthmultiplex.com/img/overlay/icons/waist.png", "latest_value": "0", "update_dttm": "2015-07-30 18:44:50.025000+05:30", "param_unlocked_icon_url": " http://healthmultiplex.com/img/trackers/waistcircumference.png", "param_overlay_ device_videolink": "https://youtu.be/sEFKdNR9boQ"}, {"param_name": "HIP CIRCUMFE RENCE", "param_overlay_device_pic": "http://healthmultiplex.com/img/overlay/devi ceicons/hip.jpg", "param_cost": "10.0", "param_units": "Cms", "canSetGoal": "Y", "param_value_icon_url": "http://healthmultiplex.com/img/trackers/hipcircumferen celock.png", "goal_value": "-", "showNextTracker": "N", "param_overlay_descripti on": "The Waist-Hip Ratio (WHR) has been used as an indicator or measure of heal th. It measures abdominal obesity. The WHO states that abdominal obesity is def ined as a waist-hip ratio above 0.90 for males and above 0.85 for females, or a body mass index (BMI) above 30.0.", "answered": "0", "param_locked_icon_url": "h ttp://healthmultiplex.com/img/trackers/hipcircumferencelock.png", "param_id": "8 ", "param_overlay_icon": "http://healthmultiplex.com/img/overlay/icons/hip.png", "latest_value": "0", "update_dttm": "2015-07-30 18:45:03.125000+05:30", "param_ unlocked_icon_url": "http://healthmultiplex.com/img/trackers/hipcircumference.pn g", "param_overlay_device_videolink": "https://youtu.be/sEFKdNR9boQ"}, {"param_n ame": "BLOOD SUGAR", "param_overlay_device_pic": "http://healthmultiplex.com/img /overlay/deviceicons/bloodsugar.jpg", "param_cost": "10.0", "param_units": "mg/d L", "canSetGoal": "N", "param_value_icon_url": "http://healthmultiplex.com/img/t rackers/bloodsugarvalue.png", "goal_value": "NA", "showNextTracker": "N", "param _overlay_description": "Diabetes (diabetes mellitus) is one of the metabolic dis eases which is characterised by high levels of blood glucose (blood sugar), eith er because insulin production is inadequate, or because the bodys cells do not r espond properly to insulin, or both.If blood sugar levels are not maintained it can lead to diabetes related complication like poor sleeping habbits, diabetic c oma, heart disease, stroke, nephropathy, retinopathy, neuropathy,", "answered": "0", "param_locked_icon_url": "http://healthmultiplex.com/img/trackers/bloodsuga rlock.png", "param_id": "9", "param_overlay_icon": "http://healthmultiplex.com/i mg/overlay/icons/bloodsugar.png", "latest_value": "0", "update_dttm": "2015-07-3 0 18:46:03.824000+05:30", "param_unlocked_icon_url": "http://healthmultiplex.com /img/trackers/bloodsugar.png", "param_overlay_device_videolink": "https://youtu. be/_uLZWOKLxKk"}, {"param_name": "BLOOD PRESSURE", "param_overlay_device_pic": " http://healthmultiplex.com/img/overlay/deviceicons/bloodpressure.jpeg", "param_c ost": "10.0", "param_units": "mm/Hg", "canSetGoal": "N", "param_value_icon_url": "http://healthmultiplex.com/img/trackers/bloodpressurevalue.png", "goal_value": "NA", "showNextTracker": "N", "param_overlay_description": "Abnormal Blood Pres sure is an early indicator for Heart disease. High blood pressure levels put an extra load on the heart to pump blood to the body. It causes thickening of the a rteries and may contribute to the development of heart failure.", "answered": "0 ", "param_locked_icon_url": "http://healthmultiplex.com/img/trackers/bloodpressu relock.png", "param_id": "10", "param_overlay_icon": "http://healthmultiplex.com /img/overlay/icons/bloodpressure.png", "latest_value": "0", "update_dttm": "2015 -07-30 18:46:26.968000+05:30", "param_unlocked_icon_url": "http://healthmultiple x.com/img/trackers/bloodpressure.png", "param_overlay_device_videolink": "https: //youtu.be/XC4y0q8eQqA"}, {"param_name": "PULSE", "param_overlay_device_pic": "" , "param_cost": "10.0", "param_units": "bpm", "canSetGoal": "N", "param_value_ic on_url": "http://healthmultiplex.com/img/trackers/pulsevalue.png", "goal_value": "NA", "showNextTracker": "Y", "param_overlay_description": "", "answered": "0", "param_locked_icon_url": "http://healthmultiplex.com/img/trackers/pulselock.png ", "param_id": "11", "param_overlay_icon": "http://healthmultiplex.com/img/overl ay/icons/pulse.png", "latest_value": "0", "update_dttm": "2015-07-30 18:46:35.77 5000+05:30", "param_unlocked_icon_url": "http://healthmultiplex.com/img/trackers /pulse.png", "param_overlay_device_videolink": ""}, {"param_name": "BODY TEMPERA TURE", "param_overlay_device_pic": "http://healthmultiplex.com/img/overlay/devic eicons/bodytemp.jpeg", "param_cost": "10.0", "param_units": "C", "canSetGoal": " N", "param_value_icon_url": "http://healthmultiplex.com/img/trackers/bodytempval ue.png", "goal_value": "NA", "showNextTracker": "Y", "param_overlay_description" : "Our normal body temperature is 37 deg centigrade .Rise in body temperature ca n be an indication of an infection or inflammation. Some disease conditions (e.g . congestive heart failure) also cause impairment in the heat loss function and thus elevating the body temperature.", "answered": "0", "param_locked_icon_url": "http://healthmultiplex.com/img/trackers/bodytemplock.png", "param_id": "12", " param_overlay_icon": "http://healthmultiplex.com/img/overlay/icons/bodytemp.png" , "latest_value": "0", "update_dttm": "2015-07-30 18:46:50.372000+05:30", "param _unlocked_icon_url": "http://healthmultiplex.com/img/trackers/bodytemp.png", "pa ram_overlay_device_videolink": "https://youtu.be/lBBgH8JiXXQ"}, {"param_name": " BLOOD O2 SATURATION", "param_overlay_device_pic": "http://healthmultiplex.com/im g/overlay/deviceicons/bloodsaturation.png", "param_cost": "10.0", "param_units": "%", "canSetGoal": "N", "param_value_icon_url": "http://healthmultiplex.com/img /trackers/bloodsaturationvalue.png", "goal_value": "NA", "showNextTracker": "Y", "param_overlay_description": "A certain level of oxygen (95-100) in blood is ne cessary for bodys normal functioning. If the oxygen levels are low, the conditio n is called Hypoxemia. If the blood oxygen levels fall below 80 percent, it may show an effect on brain and heart function. Further if the condition continues i t may lead to respiratory or cardiac arrest.", "answered": "0", "param_locked_ic on_url": "http://healthmultiplex.com/img/trackers/bloodsaturationlock.png", "par am_id": "13", "param_overlay_icon": "http://healthmultiplex.com/img/overlay/icon s/bloodsaturation.png", "latest_value": "0", "update_dttm": "2015-07-30 18:47:01 .833000+05:30", "param_unlocked_icon_url": "http://healthmultiplex.com/img/track ers/bloodsaturation.png", "param_overlay_device_videolink": "https://youtu.be/I6 gdsMpf9Nc"}]}}

/saveTrackers -

Params to pass:

userId - User ID of current user
sessionId - sessionID of current session
jsonData - Key Value pairs of ParameterID(TrackerID) : Parameter(Tracker) Value captured, separated by commas For example:

jsonData = "1:172" - For one Tracker
jsonData = "1:172,2:68.2" - For multiple Trackers

curl Example

$ curl --data "user_id=1&jsonData=1:172,2:68" http://dev-hodlife.rhcloud.com/saveTrackers

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "balance": "xxxx.0", "mew_score": "x.xx"}

/getTrackerHistory

Params to pass:

user_id - User ID of current user
param_id - ID of the tracker that you want the history of.

curl Example

$ curl --data "user_id=xx&tracker_id=x" http://dev-hodlife.rhcloud.com/getTrackerHistory

/Expected Output

On Success:: {"kind": "notifications", "data": {"status": "1", "children": [{"history_id": "1 4", "points_gained": "None", "response_value": "172", "transaction_id": "None", "updated_time": "2015-07-30 20:10:55.746000+05:30"}, {"history_id": "17", "point s_gained": "1", "response_value": "172", "transaction_id": "None", "updated_time ": "2015-08-05 16:22:14.796000+05:30"}]}}

/getWallets

Params to pass:

user_id - User ID of current user

curl Example

$ curl --data "user_id=1" http://dev-hodlife.rhcloud.com/getWallets

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"wallet_id": xx, "wallet_ba lance": 2000.0, "wallet_name": "HOD", "wallet_type_id": 1, "wallet_last_four_dig its": "xxxx"}]}}

/setGoal

Params to pass:

user_id - User ID of current user
parameter_id - Parameter_ ID / Tracker ID for which the goal is being saved
goal_value - Goal Value

curl Example

$ curl --data "user_id=x¶meter_id=2&goal_value=55" http://dev-hodlife.rhcloud.com/setGoal

/Expected Output

On Success::{"errors": [], "data": {"status": "1", "mew_score": "x.xx", "saved_notification_ id": xx}}

/endsession

Params to pass:

userId - userId of the user"

curl Example

$ curl --data "userId=2" http://dev-hodlife.rhcloud.com/endsession

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/getReports

Params to pass:

hashkey - the hashkey you get from user email link

curl Example

$ curl --data "hashkey=hashkey" http://dev-hodlife.rhcloud.com/getReports

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"units": "Cms", "param_name ": "HEIGHT", "history_id": "612", "update_dttm": "xxxx-xx-xx xx:xx:10.xxxx+00: 00", "response": "21"}, {"units": "Kg", "param_name": "WEIGHT", "history_id": "6 11", "update_dttm": "xxxx-xx-xx xx:xx:26.xx+00:00", "response": "67"}]}}

/updatePhone

Params to pass:

hashkey - the hashkey you get from user email link

curl Example

$ curl --data "hashkey=hashkey" http://dev-hodlife.rhcloud.com/updatePhone

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/updateUser

Params to pass:

userId
user_firstname
user_lastname
user_email
user_mobile
user_dob
user_gender
user_profile_pic

curl Example

$ curl --data "userId=33&user_firstname=mohan&user_lastname=kul&user_email=abc@ 888.com&user_mobile=7776665567&user_dob=1997-09-09&user_gender=F&user_profile_p ic=\\\\base64 string here \\\\" http://dev-hodlife.rhcloud.com/updateUser

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "user_id": "xx"}}

/getCategoryData

Params to pass:

none

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/getCategoryData

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "total_doctors": "8", "category_data": [ { "subcategories": [ { "subcategory_id": "1", "subcategory_doctor_count": "1", "subcategory_name": "Surgical Weight Loss" }, { "subcategory_id": "2", "subcategory_doctor_count": "1", "subcategory_name": "Diabetic Diet" } ], "health_category_img_url": "http://healthmultiplex.com/img/clinic/general_medicine.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/general_medicine_selected.png", "health_category_id": "1", "health_category_name": "General Medicine", "health_category_uuid": "56d8753b-c0cd-47ce-9e60-f977dcf0b2a9" }, { "subcategories": [ { "subcategory_id": "3", "subcategory_doctor_count": "1", "subcategory_name": "Sub category 2" }, { "subcategory_id": "4", "subcategory_doctor_count": "1", "subcategory_name": "Sub category 2" } ], "health_category_img_url": "http://healthmultiplex.com/img/clinic/mother_child.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/mother_child_selected.png", "health_category_id": "2", "health_category_name": "Mother & Child", "health_category_uuid": "ed5e8fe2-c2ba-473d-bbb3-7bda21f28d46" }, { "subcategories": [ { "subcategory_id": "5", "subcategory_doctor_count": "1", "subcategory_name": "Sub category 3" } ], "health_category_img_url": "http://healthmultiplex.com/img/clinic/stress_emotional.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/stress_emotional_selected.png", "health_category_id": "3", "health_category_name": "Stress & Emotional", "health_category_uuid": "316fe6ce-5cab-4676-9413-164fa3389f8b" }, { "subcategories": [ { "subcategory_id": "6", "subcategory_doctor_count": "1", "subcategory_name": "Sub category 4" } ], "health_category_img_url": "http://healthmultiplex.com/img/clinic/sex_fertility.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/sex_fertility_selected.png", "health_category_id": "4", "health_category_name": "Sex & Fertility", "health_category_uuid": "9d543da8-f2be-48d1-a415-f298d2a7f040" }, { "subcategories": [ { "subcategory_id": "7", "subcategory_doctor_count": "2", "subcategory_name": "Sub category 5" } ], "health_category_img_url": "http://healthmultiplex.com/img/clinic/food_nutrition.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/food_nutrition_selected.png", "health_category_id": "5", "health_category_name": "Food & Nutrition", "health_category_uuid": "240b329a-86ee-4c33-9769-31d0ca0099ce" }, { "subcategories": [], "health_category_img_url": "http://healthmultiplex.com/img/clinic/fitness_weight.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/fitness_weight_selected.png", "health_category_id": "6", "health_category_name": "Fitness & Weight", "health_category_uuid": "7a12861f-0adc-4f7a-9406-c804662cf3b5" }, { "subcategories": [], "health_category_img_url": "http://healthmultiplex.com/img/clinic/alternative_medicine.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/alternative_medicine_selected.png", "health_category_id": "7", "health_category_name": "Alternative Medicine", "health_category_uuid": "97a1ef24-576e-47ca-9910-baf4a21c3f40" }, { "subcategories": [], "health_category_img_url": "http://healthmultiplex.com/img/clinic/specialized_medicine.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/specialized_medicine_selected.png", "health_category_id": "8", "health_category_name": "Specialized Medicine", "health_category_uuid": "c844acd7-fe3e-4762-98cb-7fdac4733c26" }, { "subcategories": [], "health_category_img_url": "http://healthmultiplex.com/img/clinic/beauty_skincare.png", "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/beauty_skincare_selected.png", "health_category_id": "9", "health_category_name": "Beauty & Skin Care", "health_category_uuid": "8d593369-bdc2-4c49-8aca-d7165e0c4acb" } ] } }

/findMyExpert - Updated doc

Params to pass:

subcategoryData - Please pass sub-category IDs in a comma separated format, for example, if the user selects sub-categories 1, 2 and 3, pass it as 1,2,3
userLatitude - user's selected or current latitude
userLongitude - user's selected or current longitude
userId - user's Id - New
sessionId - user's sessionId
searchRadius - This is the raduis within which the app returns the doctors, to start with ,please hit the service with searchRadius=5, if it does not return any results, hit the same service with a searchRadius = 10, and increment 5 kms on every request until you find the results (or if search radius < 20km)



Now returns doctor_online=Y if online and N if offline.
Now returns doctor_isFavourite - Y for yes, and N for No.

Now returns "Services_list","Specialization_list","Memberships_list","experience_list","awards_list","education_list" & "Registrations_list" (along with the respective numbers) & year_of_practice (based on which we calculate the experience)

for "experience_list","awards_list","education_list" - you will receive one big chunk of text, seperated by
~\n
based on \n you need to show it in new line.

Also returns
"doctor_latitude": "17.91219210",
"doctor_longitude": "17.01371310",
"doctor_prime_location": "Napean Sea Road",
doctor_online: Y,
doctor_isFavourite: Y

curl Example

$ curl --data "subcategoryData=1,2&userLatitude=17.853178&userLongitude=17.0111&searchRadius=5" http://dev-hodlife.rhcloud.com/findMyExpert

/Expected Output

On Success:: { "kind": "notifications", "data": { "status": "1", "children": [ { "memberships_list": [ { "membership_number": "None", "membership_name": "Indian Medical Association (IMA)" }, { "membership_number": "None", "membership_name": "Federation of Obestetric and Gynaecological Societies of India (FOGS)" } ], "doctor_charge_per_min": "None", "doctor_rating": "5.0", "specialization_list": [ { "specialization_name": "General Physician", "specialization_internal_id": "1" }, { "specialization_name": "Geriatrician", "specialization_internal_id": "2" }, { "specialization_name": "Internal Medicine", "specialization_internal_id": "3" } ], "experience_list": "None", "doctor_fname": "Kuldeep", "doctor_about": "He is the medicine", "doctor_first_five_min": "500.0", "registrations_list": [ { "registration_name": "Maharastra Medical Council", "registration_number": "60126" }, { "registration_name": "Indian Medical Council", "registration_number": "861242" } ], "doctor_year_of_practice": "2010-01-10", "doctor_lname": "Ponnada", "awards_list": "None", "doctor_pic_url": "www.apple.com", "doctor_id": "2", "services_list": [ { "service_name": "Delivery", "service_internal_id": "1" }, { "service_name": "Consultant Physician", "service_internal_id": "2" }, { "service_name": "Infectious Diseases", "service_internal_id": "3" }, { "service_name": "Preventive Medicine", "service_internal_id": "4" }, { "service_name": "General Illness", "service_internal_id": "5" }, { "service_name": "travel consultations and vaccinations", "service_internal_id": "12" } ], "doctor_years_exp": "5.0", "doctor_location": "Hyderabad", "education_list": "MBBS" }, { "memberships_list": [], "doctor_charge_per_min": "None", "doctor_rating": "5.0", "specialization_list": [], "experience_list": "None", "doctor_fname": "Navin", "doctor_about": "An amazing doctor who can treat any sickness", "doctor_first_five_min": "500.0", "registrations_list": [], "doctor_year_of_practice": "2005-10-10", "doctor_lname": "Parmesh", "awards_list": "None", "doctor_pic_url": "http://www.google.com", "doctor_id": "12", "services_list": [ { "service_name": "Delivery", "service_internal_id": "1" }, { "service_name": "Consultant Physician", "service_internal_id": "2" } ], "doctor_years_exp": "None", "doctor_location": "Gachibowli, Hyderabad", "education_list": "MBBS, FRCS - London" }, { "memberships_list": [], "doctor_charge_per_min": "None", "doctor_rating": "5.0", "specialization_list": [], "experience_list": "None", "doctor_fname": "Dell", "doctor_about": "An amazing doctor who can treat any sickness 2", "doctor_first_five_min": "500.0", "registrations_list": [], "doctor_year_of_practice": "2005-10-10", "doctor_lname": "Howard", "awards_list": "None", "doctor_pic_url": "http://www.google.com", "doctor_id": "13", "services_list": [ { "service_name": "Delivery", "service_internal_id": "1" }, { "service_name": "Consultant Physician", "service_internal_id": "2" } ], "doctor_years_exp": "None", "doctor_location": "Gachibowli, Hyderabad", "education_list": "MBBS, FRCS - London" }, { "memberships_list": [ { "membership_number": "90815", "membership_name": "Indian Medical Association (IMA)" }, { "membership_number": "989303", "membership_name": "Federation of Obestetric and Gynaecological Societies of India (FOGS)" } ], "doctor_charge_per_min": "None", "doctor_rating": "5.0", "specialization_list": [ { "specialization_name": "General Physician", "specialization_internal_id": "1" }, { "specialization_name": "Geriatrician", "specialization_internal_id": "2" } ], "experience_list": "None", "doctor_fname": "Dante", "doctor_about": "An amazing doctor who can treat any sickness 3", "doctor_first_five_min": "500.0", "registrations_list": [], "doctor_year_of_practice": "2003-10-10", "doctor_lname": "Virgil", "awards_list": "None", "doctor_pic_url": "http://www.google.com", "doctor_id": "14", "services_list": [ { "service_name": "Delivery", "service_internal_id": "1" }, { "service_name": "Consultant Physician", "service_internal_id": "2" } ], "doctor_years_exp": "None", "doctor_location": "Jubilee Hills, Hyderabad", "education_list": "MBBS, FRCS - London" }, { "memberships_list": [ { "membership_number": "908158", "membership_name": "Indian Medical Association (IMA)" }, { "membership_number": "9893013", "membership_name": "Federation of Obestetric and Gynaecological Societies of India (FOGS)" } ], "doctor_charge_per_min": "None", "doctor_rating": "5.0", "specialization_list": [ { "specialization_name": "General Physician", "specialization_internal_id": "1" }, { "specialization_name": "Geriatrician", "specialization_internal_id": "2" } ], "experience_list": "None", "doctor_fname": "Rahul", "doctor_about": "An amazing doctor who can treat any sickness 4", "doctor_first_five_min": "500.0", "registrations_list": [ { "registration_name": "Maharastra Medical Council", "registration_number": "941438" }, { "registration_name": "Australian Medical Council", "registration_number": "0189543" } ], "doctor_year_of_practice": "2004-10-10", "doctor_lname": "Hommus", "awards_list": "None", "doctor_pic_url": "http://www.google.com", "doctor_id": "15", "services_list": [ { "service_name": "Delivery", "service_internal_id": "1" }, { "service_name": "Consultant Physician", "service_internal_id": "2" } ], "doctor_years_exp": "None", "doctor_location": "Jubilee Hills, Hyderabad", "education_list": "MBBS, FRCS - London" }, { "memberships_list": [ { "membership_number": "908128", "membership_name": "Indian Medical Association (IMA)" }, { "membership_number": "98d3013", "membership_name": "Federation of Obestetric and Gynaecological Societies of India (FOGS)" } ], "doctor_charge_per_min": "None", "doctor_rating": "5.0", "specialization_list": [ { "specialization_name": "General Physician", "specialization_internal_id": "1" }, { "specialization_name": "Geriatrician", "specialization_internal_id": "2" } ], "experience_list": "None", "doctor_fname": "Pani", "doctor_about": "An amazing doctor who can treat any sickness 4", "doctor_first_five_min": "500.0", "registrations_list": [ { "registration_name": "Maharastra Medical Council", "registration_number": "94w1438" }, { "registration_name": "Australian Medical Council", "registration_number": "0q189543" } ], "doctor_year_of_practice": "2014-10-10", "doctor_lname": "Puri", "awards_list": "None", "doctor_pic_url": "http://www.google.com", "doctor_id": "16", "services_list": [ { "service_name": "Delivery", "service_internal_id": "1" }, { "service_name": "Consultant Physician", "service_internal_id": "2" } ], "doctor_years_exp": "None", "doctor_location": "Jubilee Hills, Hyderabad", "education_list": "MBBS, FRCS - London" } ] } }

/generateChecksumWAP

Params to pass:

customerId
txnAmt
mobileNo
email
orderId

curl Example

$ curl --data "orderId=999&customerId=99&txnAmt=100&mobileNo=8886200048&email=yyy.yyy@yyy.com" http://dev-hodlife.rhcloud.com/generateChecksumWAP

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "ORDER_ID": "999", "payt_STATUS": "1", "C HECKSUMHASH ": "eLe+Lo4E0cdV6vU/OK+p72WFpElvnx5TZ+tVL1C9NDSSgE2toiqFfkxSu3556Rwm dhUHxRhLj4pMydb+3EDmg2H49iWMV8eAMMvG/xrgWI0="}}

/getDynamicNotifications

Params to pass:

This forms the entire part of the clinic and other features, pl ask me if you have any questions
userId
returns total_unread_count - this should be shown on the notification icon in home page
returns total_messages_for_you_count - this should be shown on "Messages from experts" tab
returns total_recommended_for_you_count - this should be shown on the recommendations for you tab
returns notification_category = "Track, Order, or Clinic" based on which we need to show the icon on the left (in dynamic notification)

returns hasproduct - If there are product details associated with the recommendation. (This will be true in cases mostly when the notif_type = R) returns msg_type It is either Message or Prescription

if the msg_type = Message : If the notif_type = 'M' : show this as a message in "messages from experts section"
if the msg_type= Message : If the notif_type = 'R' : Show this msg in the "recommended for you section"

if the msg_type = Prescription : If the notif_type = 'M' : show this as a message in "messages from experts section"
if the msg_type= Prescription : If the notif_type = 'R' : Show this msg in the "recommended for you section"

Also returns a: "update_dttm": "2015-09-23 15:28:25.890000+05:30" You need to parse it, and show in terms of current time, for example :
  • if less than 10 mins ago, show "Now"
  • if > 10 mins and < 1 hour show "Less than an hour ago"
  • if > 1 hour < 24 hours, show "Today"
  • if > 24 hours < 48 hours, show "Yesterday"
  • if > 48 hours, show "round(no of hours/24)" days ago
returns a msgforHomePage - These messages are dynamically compiled and need to be shown as dynamic notitications, on tap of the bell icon in the home page. The count is returned as explained above.

Update - Now also returns the doctor details with every recommendation.

curl Example

$ curl --data "userId=xy" gttp://dev-hodlife.rhcloud.com/getDynamicNotifications

/Expected Output



In the response find "product_delivery" Parameter. It it is 'S' show the pre-order.Other than that hide the pre-order


On Success:: { "errors": [], "data": { "status": "1", "total_recommended_for_you_count": "2", "total_unread_count": "4", "total_messages_for_you_count": "2", "dynamic_notifications": [ { "dynamic_notification_id": 4, "msgforHomePage": "Dr. Ankit Khambhati has prescribed some medicines for you", "msg_type": "Prescription", "notif_type": "M", "notif_msg_txt": "Please take Azithromycin for 3 days 0-0-1", "doctor_partner_id": 1, "notification_category": "Clinic", "doctor_partner_lname": "Khambhati", "doctor_partner_pic_url": "www.google.com", "doctor_partner_fname": "Ankit", "isfavourite": "N", "hasproduct": "Y", "product_partner_details": [ { "product_partner_prime_location": null, "product_user_price": "4999.0", "product_image_1": "https://imgupoad.s3.amazonaws.com/productimage1/1451887859.png", "product_discount": 569.9, "update_dttm": "2015-11-25 16:46:32.064166+05:30", "product_type_of": "Wrist band/ Waist clip", "product_partner_address": "Paris, France", "product_partner_rating": 5, "product_partner_qualification": "FDA approved and CE validated products", "product_name": "iHealth Edge - Watch + Fitness Tracker + Sleep Tracker", "product_partner_name": "iHealth Labs", "product_desc": "~\bTake your fitness to the next level:\b~\n\nNo matter what your fitness leve", "product_cost_original": "5699", "product_partner_id": 8, "product_delivery": "S", "product_rating": 5, "product_partner_founded_on": "2013-10-01", "product_favourites_count": null, "product_partner_about": "Where we come from?\n\n• iHealth was created in 2009 in Silicon", "product_id": 27, "product_used_for": "Fitness & sleep Tracking", "product_partner_pic_url": "https://imgupoad.s3.amazonaws.com/partnerimage/1448446451.png", "product_note": null, "product_thumbnail": "https://imgupoad.s3.amazonaws.com/productThumbnail/1451887882.png", "product_pre_order_amt": 569.9 } ], "notif_read_status": "N", "update_dttm": "2015-09-23 10:10:03.318883+00:00" }, { "dynamic_notification_id": 3, "msgforHomePage": "Dr. Kuldeep Ponnada has recommended a activity Tracker ~\biHealth Edge \b~to monitor your steps", "msg_type": "Message", "notif_type": "R", "notif_msg_txt": "Wear this all the time, all the bloody time!s", "doctor_partner_id": 2, "notification_category": "Order", "doctor_partner_lname": "Ponnada", "doctor_partner_pic_url": "www.apple.com", "doctor_partner_fname": "Kuldeep", "isfavourite": "N", "hasproduct": "Y", "product_partner_details": [ { "product_partner_prime_location": "", "product_user_price": 0, "product_image_1": "http://imgur.com/I4N9Ogu", "product_discount": 0, "update_dttm": "2015-09-23 15:39:54.640798+05:30", "product_type_of": "activity Tracker", "product_partner_address": "", "product_partner_rating": 5, "product_partner_qualification": null, "product_name": "iHealth Edge", "product_partner_name": "Health Multiplex Store", "product_desc": "~\bDescription\b~\n\nThis package offers basic evaluation of your body profile.", "product_cost_original": "5770", "product_partner_id": 2, "product_delivery": "R", "product_rating": 5, "product_partner_founded_on": "2012-11-30", "product_favourites_count": 0, "product_partner_about": "Beedo beedo beedo beedo beedo popoye, aaah, popooyyyyy!", "product_id": 2, "product_used_for": null, "product_partner_pic_url": "www.healthmultiplex.com", "product_note": "*please note the acitivity tracker will ship 4-6 weeks after you have placed the order.", "product_thumbnail": "http://imgur.com/Pl80fom", "product_pre_order_amt": 0 } ], "notif_read_status": "N", "update_dttm": "2015-09-23 10:10:01.927951+00:00" }, { "dynamic_notification_id": 2, "msgforHomePage": "Dr. Ankit Khambhati has sent you a private message.", "msg_type": "Message", "notif_type": "M", "notif_msg_txt": "This is just a message, because it is not a recommended product.", "doctor_partner_id": 1, "doctor_partner_lname": "Khambhati", "doctor_partner_pic_url": "www.google.com", "doctor_partner_fname": "Ankit", "isfavourite": "N", "hasproduct": "N", "product_partner_details": [ {} ], "notif_read_status": "N", "update_dttm": "2015-09-23 10:10:01.694855+00:00" }, { "dynamic_notification_id": 1, "msgforHomePage": "Dr. Kuldeep Ponnada has recommended a Full body health check-up ~\bFull Body Health Check-Up \b~to monitor your wellness quotient", "msg_type": "Message", "notif_type": "R", "notif_msg_txt": "To good health, my friend.", "doctor_partner_id": 2, "notification_category": "Order", "doctor_partner_lname": "Ponnada", "doctor_partner_pic_url": "www.apple.com", "doctor_partner_fname": "Kuldeep", "isfavourite": "N", "hasproduct": "Y", "product_partner_details": [ { "product_partner_prime_location": "Mumbai", "product_user_price": 0, "product_image_1": "http://imgur.com/NH12yHG", "product_discount": 0, "update_dttm": "2015-09-23 15:39:53.377520+05:30", "product_type_of": "Full body health check-up", "product_partner_address": "Lower Parel Mumbai", "product_partner_rating": 5, "product_partner_qualification": null, "product_name": "Full Body Health Check-Up", "product_partner_name": "Fortis Hospitals", "product_desc": "~\bDescription\b~\n\nThis package offers basic evaluation of your body profile.", "product_cost_original": "200", "product_partner_id": 1, "product_delivery": "N", "product_rating": 5, "product_partner_founded_on": "2000-10-25", "product_favourites_count": 0, "product_partner_about": "Fortis is the best, est est", "product_id": 1, "product_used_for": null, "product_partner_pic_url": "www.fortis.com", "product_note": null, "product_thumbnail": "http://imgur.com/bG3ayF7", "product_pre_order_amt": 0 } ], "notif_read_status": "N", "update_dttm": "2015-09-23 10:10:01.454901+00:00" } ] } }

/getDoctorPreReq

Params to pass:

Returns the data for Memberships, Specializations, Services & Registrations, health_categories & sub-categories of Doctors Which will be used to autofill for new doc registrations
None

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/getDoctorPreReq

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "health_categories_sub_categories": [ { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/general_medicine_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/general_medicine.png", "health_subcategories": [ { "health_subcategory_name": "Surgical Weight Loss", "health_category_img_url": "None", "health_category_img_hover_url": "1", "health_subcategory_id": "1" }, { "health_subcategory_name": "Diabetic Diet", "health_category_img_url": "None", "health_category_img_hover_url": "1", "health_subcategory_id": "2" } ], "health_category_id": "1", "health_category_name": "General Medicine" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/mother_child_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/mother_child.png", "health_subcategories": [ { "health_subcategory_name": "Sub category 2", "health_category_img_url": "None", "health_category_img_hover_url": "2", "health_subcategory_id": "3" }, { "health_subcategory_name": "Sub category 2", "health_category_img_url": "None", "health_category_img_hover_url": "2", "health_subcategory_id": "4" } ], "health_category_id": "2", "health_category_name": "Mother & Child" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/stress_emotional_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/stress_emotional.png", "health_subcategories": [ { "health_subcategory_name": "Sub category 3", "health_category_img_url": "None", "health_category_img_hover_url": "3", "health_subcategory_id": "5" } ], "health_category_id": "3", "health_category_name": "Stress & Emotional" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/sex_fertility_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/sex_fertility.png", "health_subcategories": [ { "health_subcategory_name": "Sub category 4", "health_category_img_url": "None", "health_category_img_hover_url": "4", "health_subcategory_id": "6" } ], "health_category_id": "4", "health_category_name": "Sex & Fertility" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/food_nutrition_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/food_nutrition.png", "health_subcategories": [ { "health_subcategory_name": "Sub category 5", "health_category_img_url": "None", "health_category_img_hover_url": "5", "health_subcategory_id": "7" } ], "health_category_id": "5", "health_category_name": "Food & Nutrition" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/fitness_weight_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/fitness_weight.png", "health_subcategories": [], "health_category_id": "6", "health_category_name": "Fitness & Weight" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/alternative_medicine_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/alternative_medicine.png", "health_subcategories": [], "health_category_id": "7", "health_category_name": "Alternative Medicine" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/specialized_medicine_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/specialized_medicine.png", "health_subcategories": [], "health_category_id": "8", "health_category_name": "Specialized Medicine" }, { "health_category_img_hover_url": "http://healthmultiplex.com/img/clinic/beauty_skincare_selected.png", " health_category_img_url": "http://healthmultiplex.com/img/clinic/beauty_skincare.png", "health_subcategories": [], "health_category_id": "9", "health_category_name": "Beauty & Skin Care" } ], "registrations": [ { "registration_id": "1", "registration_name": "Maharastra Medical Council" }, { "registration_id": "2", "registration_name": "Indian Medical Council" }, { "registration_id": "3", "registration_name": "Australian Medical Council" } ], "memberships": [ { "registration_id": "1", "registration_name": "Indian Medical Association (IMA)" }, { "registration_id": "2", "registration_name": "Federation of Obestetric and Gynaecological Societies of India (FOGS)" } ], "services": [ { "service_id": "1", "service_name": "Delivery" }, { "service_id": "2", "service_name": "Consultant Physician" }, { "service_id": "3", "service_name": "Infectious Diseases" }, { "service_id": "4", "service_name": "Preventive Medicine" }, { "service_id": "5", "service_name": "General Illness" }, { "service_id": "6", "service_name": "Specialty Diagnostics in Tuberculosis" }, { "service_id": "7", "service_name": "HIV Counselling" }, { "service_id": "8", "service_name": "Health Check Up" }, { "service_id": "9", "service_name": "managing acute medical conditions" }, { "service_id": "10", "service_name": "adolescent medicine" }, { "service_id": "11", "service_name": "ECG" }, { "service_id": "12", "service_name": "travel consultations and vaccinations" }, { "service_id": "13", "service_name": "health screening for men and women" } ], "specializations": [ { "specialization_name": "General Physician", "specialization_id": "1" }, { "specialization_name": "Geriatrician", "specialization_id": "2" }, { "specialization_name": "Internal Medicine", "specialization_id": "3" } ] } }

/updateDynamicNotifications

Params to pass:

userId
notificationData -(Notification Ids as Comma separated value ), eg- 1,2,3

curl Example

$ curl --data "userId=26¬ificationData=11,12,13" http://dev-hodlife.rhcloud.com/updateDynamicNotifications

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/addDoctor - Dashboard

Params to pass:

doctor_title- string
doctor_fname- string
doctor_lname - string
doctor_qualifications - string
doctor_pic_url - string
doctor_primary_location- string
doctor_about- string
doctor_email- string
doctor_phone- string
doctor_dob- string
doctor_gender- string
doctor_first_five_min_chg- string
doctor_next_five_min_chg- string
doctor_year_of_practice- string
doctor_fb- string
doctor_lat- string
doctor_long- string
doctor_exp - string
For this, you need to pass the different experience items of doctors separated by ~\n, for every new item. ~\n signifies a new line.
doctor_awards - string
For this, you need to pass the different award items of doctors separated by ~\n, for every new item. ~\n signifies a new line. serviceData - 1,2 (where 1,2 are service ID's)
specializationData - 1,2 (where 1,2 are Specialization ID's)
healthCategoryData - 1:1,1:2 (Where, in 1:1, the 1 on left is Health Category, and 1 on right is the health-sub-category)
membershipData- 1:908158,2:9893013 (Where, in 1:908158, the 1 on left is Membership ID, and 1 on right is the doctors membersip number)
registrationData - 1:941438,3:0189543 (Where, in 1:941438, the 1 on left is professional_registration ID from our list, and 941438 on right is the doctors registration number with that authority: For example, If Indian Medical Council is a registration with ID 1, and the doctors registration no is XYZ, you pass 1:XYZ)

curl Example

$ curl --data "doctor_fname=Rahul&doctor_lname=Hommus&doctor_qualifications=MBBS, FRCS - London&doctor_pic_url=http://www.google.com&doctor_primary_location=Jubilee Hills, Hyderabad&doctor_about=An amazing doctor who can treat any sickness 4&doctor_email=Hello@docto24r.com&doctor_phone=8823746711&doctor_dob=07-02-1982&doctor_gender=M&doctor_first_five_min_chg=500&doctor_next_five_min_chg=340&doctor_year_of_practice=10-10-2004&doctor_fb=hellodoctor4&serviceData=1,2&specializationData=1,2&healthCategoryData=1:1,1:2&membershipData=1:908158,2:9893013®istrationData=1:941438,3:0189543&doctor_exp=exp1~\nexp2&doctor_awards=award1~\naward2" gttp://dev-hodlife.rhcloud.com/addDoctor

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "doctor_id": xyz}}

/addMembership - Dashboard

Params to pass:

membership_name- string

curl Example

$ curl --data "membership_name=Indian institute of homoeopathic pysician" http://dev-hodlife.rhcloud.com/addMembership

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "saved_id": 4}}

/addRegistration

Params to pass:

registration_name- string

curl Example

$ curl --data "registration_name=Central Council of Homeopathy" http://dev-hodlife.rhcloud.com/addRegistration

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "saved_id": 4}}

/addSpecialization

Params to pass:

registration_name- string

curl Example

$ curl --data "specialization_name=Homeopath" http://dev-hodlife.rhcloud.com/addSpecialization

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "saved_id": 4}}

/addService

Params to pass:

service_name- string

curl Example

$ curl --data "service_name=Psychiatrist" http://dev-hodlife.rhcloud.com/addService

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "saved_id": 4}}

/addHealthSubCategory

Params to pass:

parent_category_id- string : Category ID of the parent

sub_category_name- string : Name of the new subcategory being added

sub_category_img_url- string : img url of the subcategory

curl Example

$ curl --data "parent_category_id=2&sub_category_name=new sub category&sub_category_img_url=imgur.com" http://dev-hodlife.rhcloud.com/addHealthSubCategory

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "subcategory_id": 4}}

/getHealthCatgories

Params to pass:

None

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/getHealthCatgories

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "categories": [ { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/general_medicine_selected.png", "category_id": "1", "category_img_url": "http://healthmultiplex.com/img/clinic/general_medicine.png", "category_name": "General Medicine" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/mother_child_selected.png", "category_id": "2", "category_img_url": "http://healthmultiplex.com/img/clinic/mother_child.png", "category_name": "Mother & Child" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/stress_emotional_selected.png", "category_id": "3", "category_img_url": "http://healthmultiplex.com/img/clinic/stress_emotional.png", "category_name": "Stress & Emotional" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/sex_fertility_selected.png", "category_id": "4", "category_img_url": "http://healthmultiplex.com/img/clinic/sex_fertility.png", "category_name": "Sex & Fertility" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/food_nutrition_selected.png", "category_id": "5", "category_img_url": "http://healthmultiplex.com/img/clinic/food_nutrition.png", "category_name": "Food & Nutrition" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/fitness_weight_selected.png", "category_id": "6", "category_img_url": "http://healthmultiplex.com/img/clinic/fitness_weight.png", "category_name": "Fitness & Weight" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/alternative_medicine_selected.png", "category_id": "7", "category_img_url": "http://healthmultiplex.com/img/clinic/alternative_medicine.png", "category_name": "Alternative Medicine" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/specialized_medicine_selected.png", "category_id": "8", "category_img_url": "http://healthmultiplex.com/img/clinic/specialized_medicine.png", "category_name": "Specialized Medicine" }, { "category_img_hover_url": "http://healthmultiplex.com/img/clinic/beauty_skincare_selected.png", "category_id": "9", "category_img_url": "http://healthmultiplex.com/img/clinic/beauty_skincare.png", "category_name": "Beauty & Skin Care" } ] } }

/addPartner

Params to pass:

partner_name
partner_address
partner_qualifications partner_pic_url
partner_found_date
partner_about
partner_parent - Send 0 if it is a new partner or , pass in the relevant partner_id of the parent (for example, for fortis hospitals, the partner_id will be 0, but for a branch of fortis, parent will be partner_id of fortis
partner_email
partner_phone
partner_reg_name - legally registered name of the partner
partner_fb
partner_lat
partner_long

curl Example

$ curl --data "partner_name=Medisana&partner_address=Dusseldorf,germany&partner_qualifications=CE Certified, FDA Approved&partner_pic_url=http://www.google.com&partner_found_date=01-01-2000&partner_about=All of the medical devices in the world&partner_parent=0&partner_email=hello@medisana.com&partner_phone=09998889098&partner_reg_name=MEDISANA MEDICAL DEVICES&partner_fb=abc&partner_lat=51.227741&partner_long=6.77345" http://dev-hodlife.rhcloud.com/addPartner

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "partner_id": 3}}

/getPartnerList

Params to pass:

None

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/getPartnerList

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "partners": [ { "partner_name": "Fortis Hospitals", "partner_address": "Lower Parel Mumbai", "partner_pic_url": "www.fortis.com", "partner_id": "1" }, { "partner_name": "Health Multiplex Store", "partner_address": "", "partner_pic_url": "www.healthmultiplex.com", "partner_id": "2" } ] } }

/addProduct

Params to pass:

product_name
product_desc
product_thumbnail_url
product_image_1
product_image_2
product_image_3
product_used_for
product_type_of
product_cost_original
product_discount
partner_id - ID of the partner who owns this product
None

curl Example

$ curl --data "product_name=Wireless Pulse Oxymeter&product_desc=The Wireless Pulse Oximeter is a great and reliable way to spot-check your blood oxygen saturation (SpO2) and pulse rate whether youre are hiking high elevations or training for a marathon&product_thumbnail_url=http://www.ihealthlabs.com/files/2413/8752/1060/nav-wireless-pulse-oximeter.png&product_image_1=a&product_image_2=b&product_image_3=c&product_used_for=spotcheck your blood oxygen saturation&product_type_of=Fitness Training Tech&product_cost_original=4000&product_discount=10.0&partner_id=1" http://dev-hodlife.rhcloud.com/addProduct

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "product_id": 3}}

/updateFavourite

Params to pass:

item_id : It can be doctorId or ProductId
userId
fav_type : 'D' for doctor | 'P' for product
action : send "up" if it is an add favourite & send "down" if it is a remove favourite
None

curl Example

$curl --data "user_id=2&user_pin=8267&userLongitude=0&searchRadius=20000&sessionId=test&userId=640&item_id=1&action=down&fav_type=P&user_mobile=7416883432" http://127.0.0.1:5000/updateFavourite

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "message": "favourite removed", "deleted_id": 10}} or {"errors": [], "data": {"status": "1", "message": "favourite added", "saved_id": 10}}

Doctor Services


/docLogin

Params to pass:

doctor_mobile

curl Example

$ curl --data "doctor_mobile=888xxx8883" http://dev-hodlife.rhcloud.com/docLogin

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "doctor_pin": 1792, "doctor_rating": "5.0", "doctor_mobile": "8886200048", "doctor_firstname": "Kuldeep", "doctor_gender": "None", "session": "mgtIDdVevHBtuu/wJRwOTg==", "doctor_lastname": "Ponnada", "doctor_email": "None", "user_profile_pic_url": "www.apple.com", "doctor_dob": "None", "doctor_id": 2 } }

On Failure:: {"errors": ["NO_USER_FOUND", "Please check phone number"], "data": {"status": "2"}}

/resetPin

Params to pass:

doc_phone
old_pin - For creating a new pin, send old_pin as NA,in this case you need to send the sessionId compulsory, but if you are updating a pin, you just need to send the old_pin and new_pin values, and can send sessionId as NA.
new_pin
sessionId

curl Example

$ curl --data "doc_phone=8886200048&old_pin=6550&new_pin=1234&sessionId=bipJQBPeC7IhtM1P3x4TiItA==" http://dev-hodlife.rhcloud.com/resetPin

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/onoff

Params to pass:

sessionId
status - send 1 for online and 0 for offline (Both as strings at the moment)
doctor_id
sessionId

curl Example

$ curl --data "sessionId=bipJQBPeC7IhtM1P4TixeItA==&doctor_id=2&status=0" http://dev-hodlife.rhcloud.com/resetPin

/Expected Output

On Success::{"errors": [], "data": {"status": "1", "doctor_online": "1", "userId": 28, "allotted_time": "2015-10-21 13:13:30.693000+05:30"}}

or {"errors": [], "data": {"status": "1", "doctor_online": "1", "userId": "", "allotted_time": ""}} if no messages

/resetEmail

Params to pass:

doc_phone
doc_email

curl Example

$ curl --data "doc_phone=8886xxxx4x&doc_email=x.y@abc.com" http://dev-hodlife.rhcloud.com/resetPin

/Expected Output

On Success::{"errors": [], "data": {"status": "1"}}

/resetPhoneDoc

Params to pass:

doc_id
new_phone
sessionId

curl Example

$ curl --data "doc_id=2&new_phone=964xx4xx045&sessionId=sessionId" http://dev-hodlife.rhcloud.com/resetPhoneDoc

/Expected Output

On Success::{'errors': [],'data' : {'status':'1','new_no':newPhone}}

/updatePhoneDoc

Params to pass:

doc_id
new_phone
pin

curl Example

$ curl --data "doc_id=2&new_phone=964xxx0045&pin=5719" http://dev-hodlife.rhcloud.com/updatePhoneDoc

/Expected Output

On Success::{'errors': [],'data' : {'status':'1'}}

/updateImage

Params to pass:

userId userId - (Either doctorId or the userId, or PartnerID whatever is applicable)
userType- Please pass "U" for User and "D" for doctor
file - Need to pass the file to this param

Data to pass

http://screencast.com/t/wN4YzjShX7

/Expected Output

On Success:: {"status": "1", "message": "Success", "new_pic_url": "https://xyz.s3.amazonaws.com/xyz/1444225130.png"}

/getExpertRecommendation

Params to pass:

userId
sessionId
userLatitude
userLongitude
checkedStatus - Send 0 if Unchecked and 1 if checked.

Eg: Data to pass

$ curl --data "sessionId=testDocMsg&userLatitude=17.9122100&userLongitude=17.01271110&userId=2x" http://dev-hodlife.rhcloud.com/getExpertRecommendation

/Expected Output

On Success:: {"errors": [], "data": {"status": "success", "alloted_id": 6}}

/addBankAcc

Params to pass:

doc_id - (Either doctorId or the userId, or PartnerID whatever is applicable)
acc_name
acc_number
ifsc
branch_location
sessionId

curl Example

$ curl --data "doc_id=2&acc_name=name &acc_number=xyz&ifsc=SBININ0012&sessionId=sessiondummy&branch_location=Hyderabad,AP" http://dev-hodlife.rhcloud.com/addBankAcc

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/addHodAsset

Params to pass:

hod_address - As String
hod_area - As String
hod_city - As String
hod_pin - As String
hod_company - As String
hod_contact_hr - As String
hod_mgr - As String
hod_duration - As String
hod_mgr_phone - As String
hod_latitude - As String
hod_longitude - As String

curl Example

$ curl --data "hod_address=123 Old parle road, Bandra, Mumbai&hod_area=Bandra&hod_city=Mumbai&hod_pin=400013&hod_company=HOD&hod_mgr=Sanskari Bahu&hod_duration=3&hod_mgr_phone=8886200048&hod_latitude=19.060692&hod_longitude=72.836250&hod_contact_hr=02024445567" http://dev-hodlife.rhcloud.com/addHodAsset

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "hodId": x}}

/sendanemailService

Params to pass:

mailMsg - As URLEncoded String
mailSubject - As URLEncoded String

curl Example

$ curl --data "mailMsg=hello, testing send email again.&mailSubject=Re: Doctor ID x requesting addition of Other option at signup" http://dev-hodlife.rhcloud.com/sendanemailService

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "mail_status": "sent"}}

/getReportMobile

Params to pass:

userId

curl Example

$ curl --data "userId=xx" http://dev-hodlife.rhcloud.com/getReportMobile

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "user_latitude": null, "user_lname": "def", "user_primary_location": null, "user_longitude": null, "user_dob": "1982-06-08", "user_gender": "M", "userId": 26, "user_profile_pic":"something", "user_fname": "abc""children": [{"units": "Cms", "param_name ": "HEIGHT", "history_id": "612", "update_dttm": "xxxx-xx-xx xx:xx:10.xxxx+00: 00", "response": "21"}, {"units": "Kg", "param_name": "WEIGHT", "history_id": "6 11", "update_dttm": "xxxx-xx-xx xx:xx:26.xx+00:00", "response": "67"}]}}

/getRecommendationRequestCheck

Params to pass:

doctorId

curl Example

$ curl --data "doctorId=xx" http://dev-hodlife.rhcloud.com/getRecommendationRequestCheck

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "allotted_time": "2015-10-21 13:13:30.693000+05:30", "userId": xx}}

/getRecommendationRequestCheck

Params to pass:

doctorId

curl Example

$ curl --data "doctorId=xx" http://dev-hodlife.rhcloud.com/getRecommendationRequestCheck

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "allotted_time": "2015-10-21 13:13:30.693000+05:30", "userId": xx}}

/saveRecommendationResponse

Params to pass:

recommendation_req_id
doctor_response

curl Example

$ curl --data "recommendation_req_id=1&doctor_response=Take Volini" http://dev-hodlife.rhcloud.com/saveRecommendationResponse

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "recommendation_req_id": "1"}}

/RequestCallPush

Params to pass:

userId
hcpId
sessionId
ccomplaint
ttw

curl Example

$ curl --data "userId=33&hcpId=14&sessionId=YoSession&ccomplaint=I am hungry. Hunger is also a feeling." http://dev-hodlife.rhcloud.com/RequestCallPush

/Expected Output

On Success:: {"errors": [], "data": {"status": "1",'push_status':'success'}}

/cancelnow

Params to pass:

userDocTrnId
userType - D if Doctor & U if user

curl Example

$ curl --data "userDocTrnId=33&userType=D" http://dev-hodlife.rhcloud.com/cancelnow

/Expected Output

On Success:: {'errors': [],'data' : {'status':'1','cancel_status':'CANCELLED'}}

/endConsultation

Params to pass:

userDocTrnId
doctorNotes - Notes from Doctor, limit to 512 characters || Send doctorNotes as DeclineReason along with option, in case of Decline call (ex: if doctor chooses option 3 - and adds text, send the concatenated string as "OPTION 3 - I AM BUSY"
endReason - send "DECLINE" if doctor declined. else, send "NA"

curl Example

$ curl --data "userDocTrnId=33&doctorNotes=hello" http://dev-hodlife.rhcloud.com/endConsultation

/Expected Output

On Success:: {'errors': [],'data' : {'status':'1','cancel_status':'FOLLOWUP_NOTES_SAVED'}}

/rateNow

Params to pass:

userId
doctorId
userDocTrnId
ratingBy - send "D" if doctor & "U" if user
ratingValue
ratingReason

curl Example

$ curl --data "userDocTrnId=33&doctorNotes=hello" http://dev-hodlife.rhcloud.com/endConsultation

/Expected Output

On Success:: {'errors': [],'data' : {'status':'1','cancel_status':'FOLLOWUP_NOTES_SAVED'}}

/updategcm

Params to pass:

userId
userType - send "D" if doctor & "U" if user
sessionId
deviceId
gcmId

curl Example

$ curl --data "userId=33&userType=D&sessionId=session&deviceId=deviceId&gcmId=gcmid" http://dev-hodlife.rhcloud.com/updategcm

/Expected Output

On Success:: {'errors': [],'data' : {'status':'1','update_status':'doctor_gcm_updated'}}

/getCallLog

Params to pass:

doctorId
sessionId - urlencoded

curl Example

$ curl --data "doctorId=33&sessionId=session" http://dev-hodlife.rhcloud.com/getCallLog

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "children": [ { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 06:54:13 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "26", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 06:54:39 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 11:35:37 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "41", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 11:36:18 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 11:38:06 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "25", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 11:38:31 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 11:53:38 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "35", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 11:54:13 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 12:10:23 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "20", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 12:10:43 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 12:13:43 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "25", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 12:14:08 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Fri, 16 Oct 2015 12:25:15 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "17", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Fri, 16 Oct 2015 12:25:32 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 07:42:54 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "12", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 07:43:06 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 07:45:34 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "14", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 07:45:48 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 07:47:44 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "12", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 07:47:56 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 07:53:49 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "16", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 07:54:05 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 07:57:36 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "37", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 07:58:13 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 09:12:58 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "22", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 09:13:20 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 09:13:49 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "19", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 09:14:08 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 09:14:35 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "11", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 09:14:46 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 10:14:08 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "11", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 10:14:19 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 10:31:35 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "16", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 10:31:51 +0000" }, { "call_chief_complaint": "None", "call_start_time": "Mon, 19 Oct 2015 10:33:58 +0000", "user_firstname": "Mohan", "user_lastname": "Ponnada", "call_cost": "500.0", "call_duration": "16", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M", "call_followup_notes": "None", "call_end_time": "Mon, 19 Oct 2015 10:34:14 +0000" } ] } }

/getMsgLog

Params to pass:

doctorId
sessionId - urlencoded

curl Example

$ curl --data "doctorId=33&sessionId=session" http://dev-hodlife.rhcloud.com/getMsgLog

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "children": [ { "answered_dttm": "2015-10-23 06:32:18.071321+00:00", "user_firstname": "Mohan", "allotted_dttm": "None", "answer_resp_text": "Don't Take Voli'ni2d4", "user_lastname": "Ponnada", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/1445429698Tulips.jpg", "user_gender": "M" } ] } }

/getBankAcc

Params to pass:

docId

curl Example

$ curl --data "doc_id=33" http://dev-hodlife.rhcloud.com/getBankAcc

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "children": [ { "ifsc_code": "SBININ0012", "branch_loc": "Faridabad,NCR", "acc_name": "Manmohan Singg", "bankacc_seq_id": "3", "acc_number": "7121676712" } ] } }

/getRatingPending

Params to pass:

userId
sessionId
userType - D for doctor and U for user

curl Example

$ curl --data "userId=33&sessionId=session&userType=D" http://dev-hodlife.rhcloud.com/getMsgLog

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "children": [ { "user_id": "x", "user_firstname": "Mohan", "user_lastname": "abc", "usrDocTrn": "123", "historyId": "10" } ] } }
will get doctor details in case of type "U"

/checkhodbalance

Params to pass:

userId
userType - D for doctor and U for user

curl Example

$ curl --data "userId=33&userType=D" http://dev-hodlife.rhcloud.com/checkhodbalance

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "balance":"2000" } }

/calibratemeters

Params to pass:

userId

curl Example

$ curl --data "userId=33" http://dev-hodlife.rhcloud.com/calibratemeters

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "mew_meter_scores": [ { "wellbeingmeter": "0.0", "motivationmeter": "0.1", "engagementmeter": "0.02" } ] } }

/getAllReports

Params to pass:

userId
sessionId

curl Example

$ curl --data "userId=33" http://dev-hodlife.rhcloud.com/getAllReports

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "children": [ { "from_hodId": "1", "sessionId": "UUWeDZkU2gSRurgnZGiAyg==", "session_report_data": [ { "param_captured_values": "170", "param_name": "HEIGHT", "param_units": "Cms", "time_of_capture": "2015-11-05 04:54:13.144840+00:00", "param_description": "" }, { "param_captured_values": "55.2", "param_name": "WEIGHT", "param_units": "Kg", "time_of_capture": "2015-11-05 05:13:11.459048+00:00", "param_description": "Body Mass Index (BMI) is calculated using your weight and height & is a rough indicator of healthy body weight. It gives you an idea of whether you are underweight, overweight or an ideal weight for your height. It's useful to know your BMI because when your weight increases (or decreases) outside of the ideal range, risk for heart disease, high blood pressure, diabetes and some cancers increases. Although BMI is not the most specific measurement, it can be your first indication of deteriorating fitness so keep it balanced!" }, { "param_captured_values": "36.7", "param_name": "BODY WATER", "param_units": "%", "time_of_capture": "2015-11-05 05:13:11.479312+00:00", "param_description": "Our body consists of 50% - 75% water. Adequate water intake is essential for health and well-being of the body. Not drinking enough water can increase the risk of dehydration, kidney stones and urinary tract infection (especially in women). Make sure you drink at least 2-3 litres of water (and fluids) every day. Water intake should equal water loss so when exercising remember to re-hydrate often and drink more than usual. It's better to drink too much than too little!" }, { "param_captured_values": "13.2", "param_name": "BODY FAT", "param_units": "%", "time_of_capture": "2015-11-05 05:13:11.487109+00:00", "param_description": "The percentage of body fat in relation to the overall weight of the body is an important factor in estimating health risks. While there is an essential amount of body fat required for normal functions, consumption of excess food or calories leads to excess fat. This fat is not required by the body and is therefore stored, leading to conditions like obesity which, in turn, increase risk of heart related disease, hormonal imbalances, Type 2 Diabetes, Cancer, Metabolic Syndrome, Osteoarthritis and Sleep apnea. The healthy body fat percentages differ by age and gender. Regular exercise and a low-sugar diet help to keep excess fat in check!" }, { "param_captured_values": "86.8", "param_name": "MUSCLE MASS", "param_units": "%", "time_of_capture": "2015-11-05 05:13:11.494071+00:00", "param_description": "Lean mass consists of biologically active tissue including muscle, bone, nerves and vital organ tissue. Muscles especially have a much higher calorie burning capacity than fat tissue and play an important role in the well-being of the body. They have the ability to store glucose as glycogen thus decreasing the risk of diabetes and obesity. Building muscle helps to enhance metabolism and keep you looking and feeling younger." }, { "param_captured_values": "8.3", "param_name": "BONE MASS", "param_units": "Kg", "time_of_capture": "2015-11-05 05:13:11.502426+00:00", "param_description": "Bones make up around15%of a person's total body weight (also depends on the individual's frame size). If your bone mass is below normal, it increases your risk of fractures on falling. As you age, you lose bone mass. If this loss continues, osteopenia leads to osteoporosis which is a major concern in women. The higher your bone mass, the longer it takes to get osteoporosis. So go for that morning walk in the sun and have a glass of milk!" } ], "report_id": "HOD1-DEEP436-8" } ] } }

/getMoodWheel

Params to pass:

None

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/getMoodWheel

/Expected Output

On Success::{ "errors": [], "data": { "status": "1", "children": [ { "mood_name": "AWESOME", "mood_id": 1, "mood_desc": "We feel awesome too. Let’s keep it going through the world of HOD, by getting you track your awesome life." }, { "mood_name": "JUST FINE", "mood_id": 2, "mood_desc": "Well, we have a way to get you feeling a lot better. Get in and explore the wonders of HOD" }, { "mood_name": "TIRED", "mood_id": 3, "mood_desc": "It has been a long day, but I think we can get out of this funk together." }, { "mood_name": "STRESSED", "mood_id": 4, "mood_desc": "It has been a long day, but I think we can get out of this funk together. Check out products and services that can get you up and going." }, { "mood_name": "NOT WELL", "mood_id": 5, "mood_desc": "We are sorry to hear that, we think we can help. Login/ Register so we can get you on a call with a doctor right away." }, { "mood_name": "SICK", "mood_id": 6, "mood_desc": "We are sorry to hear that, we think we can help. Login/ Register so we can get you on a call with a doctor right away." } ] } }

/saveMoodWheel

Params to pass:

moodId
hodId - The HOD Id

curl Example

$ curl --data "hodId=1&moodId=1" http://dev-hodlife.rhcloud.com/saveMoodWheel

/Expected Output

On Success::{"errors": [], "data": {"status": "1", "message": "MOOD_SAVED"}}

/getShareTemplate

Params to pass:

user_fname - First name of the user
Note - You need to replace the "~" with the current captured value and "~~" with the Tracker value

curl Example

$ curl --data "user_fname=Sanjeev" http://dev-hodlife.rhcloud.com/getShareTemplate

/Expected Output

On Success::{"errors": [], "data": {"status": "1", "children": [{"template_name": "SHARE DATA", "mail_desc": "Use this template to share data, replace ~ with the value from local", "mail_content": "Dear Mohan,\\n\\nYour HOD station data for ~~ is ~.\\n\\nYou can download the HOD app and consult an expert to find out what this data means for you.\\n\\n \"playstore\"/ \\n\\nThanks,\\n\n The HOD.life team.", "mail_subject": "Your HOD Station data"}]}}

/userBuyProduct

Params to pass:

user_id
product_id
session_id (URL encoded)
buytype (BN : for buy now, PO : for pre-order)

curl Example

$ curl --data "user_fname=Sanjeev" http://dev-hodlife.rhcloud.com/getShareTemplate

/Expected Output

On Success::{"errors": [], "data": {"status": 1, "balance": xxx.xx}} On Erorr: status bit changes
"Status" : 0 ("Failed") "Status" : 2("Not having enough balance") "Status" : 3("if units of products are not available")

/userRedeemVoucher

Params to pass:

user_id
hod_id
voucher

curl Example

$ curl --data "user_id=xxx&hod_id=x&voucher=xxxxx" http://dev-hodlife.rhcloud.com/userRedeemVoucher

/Expected Output

On Success::{"errors": [], "data": {"status": 1,'msg':'Applied voucher successfully', "balance": xxx.xx}}

/placeWithdrawlRequest

Params to pass:

docId
wallet_from_id - The HOD wallet Id of the doctor
to_acc_or_wallet_id - The bank account id or the wallet iD to be transferred to
sessionId - Session id of doctor
withdrawl_amt - amount that the doctor wishes to withdraw

curl Example

$ curl --data "docId=33&wallet_from_id=1x&to_acc_or_wallet_id=2x&sessionId=session&withdrawl_amt=10000" http://dev-hodlife.rhcloud.com/placeWithdrawlRequest

/Expected Output

On Success::{"errors": [], "data": {"status": "1", "trn_no": "36xx474440"}}

/editProfileRequest

Params to pass:

doctorId
sessionId - Session id of doctor

curl Example

$ curl --data "doctorId=2&sessionId=2xxxx==" http://dev-hodlife.rhcloud.com/editProfileRequest

/Expected Output

On Success::{"errors": [], "data": {"status": "1", "request_status": "received"}}

/registerUser

Params to pass:

user_employeeId - the employee ID of the user as per his employment records (alpha numeric)
user_firstname - as string
user_lastname- as string
user_email - as string
user_mobile - 10 digit mobilen number, prevalidated, without a preceeding "0"
user_dob - date in format of "MM-DD-YYYY"
user_gender - as string (1 character only) - "M" or "F"
file - Need to pass the file to this param - this file is the user profile pic
hod_id - URL as string.
user_latitude - as string.
user_longitude - as string.
user_primary_location - as string.

NOTE
user_fb_id - User facebook ID as string, if not registering via facebook, pass NA
If you are passing a facebookID, you need to retrieve facebook user's image url and pass it as user_fb_img_url. if normal Signup, you don't need to pass user_fb_img_url and just pass the file:
user_fb_img_url - Which is the facebook users image url

curl Example

$curl --data "user_employeeId=abcdef&user_firstname=abc&user_lastname=def&user _email=sai@saiew2s.com&user_mobile=000000008&user_dob=06-08-1982&user_gender=M& user_profile_pic=www.google.com&hod_id=1&user_latitude=x&user_longitude=y&user_primary_location=Bandra, Mumbai&user_fb_id=20123121791278" http://dev-hodlife.rhcloud.com/registerUser

/Expected Output

Now returns a "session" value which has to be passsed along with other webservices

On Success:: {"errors": [], "data": {"status": "1", "user_emp_id": "xx", "user_mew_score" : 0.0, "user_id_uuid": "xx-5daa-xx-9cdf-xx", "user_id": xx, "u ser_firstname": "xx", "user_dob": "xx-xx-xxxx", "user_lastname": "xx", "modhas h": "xx", "user_rating": 5.0, "user_mobile": "xxxxx", "user_update_dttm": "", "user_profile_pic_url": "x", "user_gender": "x", "user_pin": 2 121, "balance": 2000, "user_email": "xyz@abc.com","session": "akdhaddioiqdoh=="}}

/loginUser

Params to pass:

user_cred - either the phone number of user [as string (10 digits) without a leading "0"] or the facebookID of the user, if logging in via facebook
hod_id - pass 0 by default.
login_type - pass M if the user is logging in via mobile number or "F" if the user is logging in via facebook.

Note: If the login_type is "F", you need to fetch the user's facebook image url and pass it as the following parameter:

facebook_img_url - as string.

curl Example

$curl --data "user_mobile=9999999999&hod_id=0" http://dev-hodlife.rhcloud.com/login

/Expected Output

Now returns a "session" value which has to be passsed along with other webservices

On Success:: { "errors": [], "data": { "status": "1", "user_emp_id": "abcdef", "user_mew_score": "2.0", "user_id_uuid": "4b24debc-3f64-4b72-8730-2bdbad75fe85", "user_id": 26, "user_firstname": "abc", "session": "i9m09ClW59VFjCiiTWPrJA==", "user_dob": "1982-06-08", "user_lastname": "def", "modhash": "test", "mew_score_rank": 77, "user_rating": "5.0", "user_mobile": "99999999999", "user_update_dttm": "2015-07-15 14:45:24.878000+05:30", "user_profile_pic_url": "https://imgupoad.s3.amazonaws.com/user/abcdedf.jpeg", "user_gender": "M", "user_pin": 3487, "isLinked": "N", "balance": "4000.0", "user_email": "kuldeep@abcdef.in" } }

/getHodsNearMe

Params to pass:

userId
sessionId
userLatitude
userLongitude
searchRadius - You need to first pass search radius as 5, if you get a response with 0 hods, you should hit the same service again, with the search radius of 10, and if still no results, you need to try with 15 km, so total of 3 trials.. If no results, show the message of "No HOD's near you, we will intimate you when we deploy a health station in your locality. Thanks for choosing HoD!"

curl Example

$curl --data "userLatitude=19.007498&userLongitude=72.835941&userId=1&sessionId=QGQ3&searchRadius=10" http://dev-hodlife.rhcloud.com/getHodsNearMe

/Expected Output

On Success:: { "errors": [], "data": { "status": "1", "children": [ { "hod_city": "Mumbai", "hod_longitude": "72.836250", "hod_address": "123 Old parle road, Bandra, Mumbai", "hod_area": "Bandra", "hod_latitude": "19.060692", "hod_company": "HOD", "hod_id": "1" } ] } }

/linkUserHod

Params to pass:

userId
sessionId
hodId

curl Example

$curl --data "userId=22&sessionId=djke9cj9s3d2lc23/==&hodId=1" http://dev-hodlife.rhcloud.com/linkUserHod

/Expected Output

On Success: - ON request demo: {"errors": [], "data": {"status": "1", "linked_with": "none", "message": "linked_demo_requested", "confirm_id": "7"}}

On Success: - If HOD already is linked: {"errors": [], "data": {"status": "2", "linked_with": "1", "message": "hod_already_linked", "confirm_id": "none"}}


/createNewSession
/creditWallet
/getVerifiedStatus
/updateUserApp
/getUserCallLog
/getUserMsgLog
/listDoctors
/generateOrderNumber
/validateChecksum

/createNewSession

Params to pass:

doctorId

curl Example

$curl --data "doctorId=xyz" http://dev-hodlife.rhcloud.com/createNewSession

/Expected Output

On Success: - : {"errors": [], "data": {"status": "1", "sessionId": "pX1csyywZfPAp+a9pNN47A=="}}

/creditWallet

Params to pass:

userId
amount
sessionId
paymentRef
hashkey

curl Example

$curl --data "userId=3xy&amount=1000&sessionId=test&paymentRef= reference id from paytm&hashkey=e62654b72v29df477fb5735ea7b8aae5fd357b7a" http://dev-hodlife.rhcloud.com/creditWallet

/Expected Output

On Success: - : { "errors": [], "data": { "status": "1", "updated_balance": 5000, "extTrnId": "reference id from paytm" } }

/getVerifiedStatus

Params to pass:

userId

curl Example

$curl --data "userId=3xy" http://dev-hodlife.rhcloud.com/getVerifiedStatus

/Expected Output

On Success: - :{ "errors": [], "data": { "status": "1", "email_verified": "N", "userId": "33", "phone_verified": "Y", "fb_connected": "N" } }

/updateUserApp

Params to pass:

userId
user_firstname
user_lastname
user_email
user_mobile
user_dob
user_gender
isProfilePicUpdate - If user is uploading a new picture, pass "Y" along wth the "file" parameter
user_profile_pic - If isProfilePicUpdate="N", pass the older image url which is returned to app during login
user_delivery_address - Capture the delivery address and pass it as string, if no delivery address mentioned pass "NA"

curl Example

$ curl --data "userId=33&user_firstname=mohan&user_lastname=kul&user_email=abc@ 888.com&user_mobile=7776665567&user_dob=1997-09-09&user_gender=F&isProfilePicUpdate=N&user_profile_p ic=older_image_url_which_exists&user_delivery_address=123 abc road, 14 street, opposite xyz bank, bandra, mumbai" http://dev-hodlife.rhcloud.com/updateUserApp

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "user_id": "xx","profile_pic_url":"xxxxxxx"}}

/getUserCallLog

Params to pass:

userId sessionId - urlencoded

curl Example

$curl --data "userId=336&sessionId=session" http://dev-hodlife.rhcloud.com/getUserCallLog

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"calllog_call_starttime": "Wed, 30 Sep 2015 18:24:28 +0000", "calllog_call_status": "None", "calllog_doc_qualificaiton": "mbbs", "calllog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448447478.jpeg", "calllog_doc_lname": "Rawat", "calllog_call_duration": "33", "calllog_call_endtime": "Wed, 30 Sep 2015 18:25:01 +0000", "calllog_doc_fname": "aman", "calllog_doc_title": "Dr.", "calllog_doc_id": "2", "calllog_call_cost": "500.0", "calllog_doc_location": "Delhi, Faridabad, India"}, {"calllog_call_starttime": "Wed, 30 Sep 2015 17:58:41 +0000", "calllog_call_status": "None", "calllog_doc_qualificaiton": "mbbs", "calllog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448447478.jpeg", "calllog_doc_lname": "Rawat", "calllog_call_duration": "30", "calllog_call_endtime": "Wed, 30 Sep 2015 17:59:11 +0000", "calllog_doc_fname": "aman", "calllog_doc_title": "Dr.", "calllog_doc_id": "2", "calllog_call_cost": "500.0", "calllog_doc_location": "Delhi, Faridabad, India"}, {"calllog_call_starttime": "Wed, 30 Sep 2015 14:05:42 +0000", "calllog_call_status": "None", "calllog_doc_qualificaiton": "mbbs", "calllog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448447478.jpeg", "calllog_doc_lname": "Rawat", "calllog_call_duration": "53", "calllog_call_endtime": "Wed, 30 Sep 2015 14:06:35 +0000", "calllog_doc_fname": "aman", "calllog_doc_title": "Dr.", "calllog_doc_id": "2", "calllog_call_cost": "500.0", "calllog_doc_location": "Delhi, Faridabad, India"}, {"calllog_call_starttime": "Tue, 29 Sep 2015 15:44:33 +0000", "calllog_call_status": "None", "calllog_doc_qualificaiton": "mbbs", "calllog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448447478.jpeg", "calllog_doc_lname": "Rawat", "calllog_call_duration": "46", "calllog_call_endtime": "Tue, 29 Sep 2015 15:45:19 +0000", "calllog_doc_fname": "aman", "calllog_doc_title": "Dr.", "calllog_doc_id": "2", "calllog_call_cost": "500.0", "calllog_doc_location": "Delhi, Faridabad, India"}]}}

/getUserMsgLog

Params to pass:

userId sessionId - urlencoded

curl Example

$curl --data "userId=336&sessionId=session" http://dev-hodlife.rhcloud.com/getUserMsgLog

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"msglog_doc_lname": "Rawat", "msglog_doc_title": "Dr.", "msglog_answer_resp_text": "Keep it up", "msglog_doc_qualification": "mbbs", "msglog_cost": "10.0", "msglog_allotted_dttm": "None", "msglog_doc_id": "2", "msglog_doc_location": "Delhi, Faridabad, India", "msglog_answered_dttm": "2015-10-31 05:26:57.701921+05:30", "msglog_doc_fname": "aman", "msglog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448447478.jpeg"}, {"msglog_doc_lname": "Rawat", "msglog_doc_title": "Dr.", "msglog_answer_resp_text": "Dogs bark pigs grunt", "msglog_doc_qualification": "mbbs", "msglog_cost": "10.0", "msglog_allotted_dttm": "None", "msglog_doc_id": "2", "msglog_doc_location": "Delhi, Faridabad, India", "msglog_answered_dttm": "2015-11-02 06:18:28.902800+05:30", "msglog_doc_fname": "aman", "msglog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448447478.jpeg"}, {"msglog_doc_lname": "dfgdf", "msglog_doc_title": "Mr.", "msglog_answer_resp_text": "None", "msglog_doc_qualification": "edu 1", "msglog_cost": "10.0", "msglog_allotted_dttm": "None", "msglog_doc_id": "14", "msglog_doc_location": "IIIT, Gachibowli, Hyderabad, Telangana, India", "msglog_answered_dttm": "None", "msglog_doc_fname": "dfgdf", "msglog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448548024.jpeg"}, {"msglog_doc_lname": "dfgdf", "msglog_doc_title": "Mr.", "msglog_answer_resp_text": "You are doing fine-", "msglog_doc_qualification": "edu 1", "msglog_cost": "10.0", "msglog_allotted_dttm": "None", "msglog_doc_id": "14", "msglog_doc_location": "IIIT, Gachibowli, Hyderabad, Telangana, India", "msglog_answered_dttm": "2015-10-31 13:07:29.968346+05:30", "msglog_doc_fname": "dfgdf", "msglog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448548024.jpeg"}, {"msglog_doc_lname": "dfgdf", "msglog_doc_title": "Mr.", "msglog_answer_resp_text": "Need to assess your issue. Call Now-The first and the first and the next year", "msglog_doc_qualification": "edu 1", "msglog_cost": "10.0", "msglog_allotted_dttm": "None", "msglog_doc_id": "14", "msglog_doc_location": "IIIT, Gachibowli, Hyderabad, Telangana, India", "msglog_answered_dttm": "2015-11-01 02:28:59.773935+05:30", "msglog_doc_fname": "dfgdf", "msglog_doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctorpic/1448548024.jpeg"}]}}

/generateOrderNumber

Params to pass:

userId
sessionId
productId

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/generateOrderNumber

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "ORDER_ID": "ordernumber"}]}}

/generateOrderNumber

Params to pass:

userId
sessionId
productId

curl Example

$ curl --data "" http://dev-hodlife.rhcloud.com/generateOrderNumber

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "ORDER_ID": "ordernumber"}]}}

/validateChecksum

Params to pass:

-

curl Example

NA

/Expected Output

On Success:: Redirects to the page as requested by PayTM sdk

/emailVerification

Params to pass:

userId

curl Example

$curl --data "userId=xxx" http://dev-hodlife.rhcloud.com/emailVerification

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/assignVouchers

Params to pass:

voucher_id
no_of_vouchers

curl Example

$curl --data "userId=xxx" http://dev-hodlife.rhcloud.com/assignVouchers

/Expected Output

On Success:: {'errors': [],'data' : {'status':'1','message':'Success'}}

/hodLatLong

Params to pass:

hod_id

curl Example

$curl --data "hod_id=x" http://dev-hodlife.rhcloud.com/hodLatLong

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": {"lat": "28.4539891", "longi": "77.0688816"}}}

/updateFbId

Params to pass:

userId
sessionId
fbId
userType (D- doctor, U - user)

curl Example

$curl --data "userId=xxx&sessionId=xxx&fbId=xxx&userType=U" http://dev-hodlife.rhcloud.com/updateFbId

/Expected Output

On Success:: {"errors": [], "data": {"status": "1"}}

/userDoctorFavourites

Params to pass:

user_id

curl Example

$curl --data "user_id=xxx" http://dev-hodlife.rhcloud.com/userDoctorFavourites

/Expected Output

On Success:: {"errors": [], "data": {"children": [{"doc_location": "Hyderabad", "doc_rating": 5.0, "doc_qualifications": "MBBS - Jawahar Medical Foundation, Dhule, 1994 ~\\n DGO Nanavati Hospitals, Bombay 1998~\\nDiploma in Laproscopy - Wadia Hospital, Mumbai", "doc_fname": "Kuldeep", "doc_next_five": 350.0, "doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctor/144539544906254_BG.jpg", "doc_lname": "Ponnada", "doc_first_five": 500.0, "doc_title": "Dr", "doc_id": 2}]}}

/userProductFavourites

Params to pass:

user_id

curl Example

$curl --data "user_id=xxx" http://dev-hodlife.rhcloud.com/userProductFavourites

/Expected Output

On Success:: {"errors": [], "data": {"status": "1", "children": [{"partner_address": "Lower Parel Mumbai", "product_img_url": "http://imgur.com/NH12yHG", "product_id": 1, "partner_name": "Fortis Hospitals", "user_price": null, "product_rating": 5.0, "original_cost": "200", "product_name": "Full Body Health Check-Up"}]}}

/userCallSummary

Params to pass:

udt_id (user doctor transaction id)

curl Example

$curl --data "udt_id=xxx" http://dev-hodlife.rhcloud.com/userCallSummary

/Expected Output

On Success:: {"errors": [], "data": {"status": "0", "children": {"doc_location": "Jubilee Hills, Hyderabad", "rating": null, "complaint": "I have a bad stomach pain because my phone left me, i hope it is in a happy place", "start_time": "Wed, 25 Nov 2015 09:00:18 +0000", "doc_qualifications": "MBBS, FRCS - London", "call_cost": 625.0, "followupnotes": null, "doc_fname": "Nitin", "doc_pic_url": "https://imgupoad.s3.amazonaws.com/doctor/1449132972WWW.YTS.TO.jpg", "doc_lname": "Mishra", "end_time": "Wed, 25 Nov 2015 09:00:49 +0000", "rating_reason": null, "doc_title": "Dr", "call_duration": "25"}}}




API Version: 0.2.1,
Public Release: No
Mode: Test