PHP Classes

Request to add iHealth

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Request to add iHealth  >  (Un) Subscribe thread alerts  
Subject:Request to add iHealth
Summary:Great library wish to add iHealth
Messages:7
Author:Eric Beauchemin
Date:2017-02-24 14:39:47
 

  1. Request to add iHealth   Reply   Report abuse  
Picture of Eric Beauchemin Eric Beauchemin - 2017-02-24 14:39:47
Would like to see iHealth MyVitals to be added

Thanks anyway!

  2. Re: Request to add iHealth   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-03-01 10:53:32 - In reply to message 1 from Eric Beauchemin
Sure, give me a few days and I will look into it.

  3. Re: Request to add iHealth   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-03-16 14:02:53 - In reply to message 1 from Eric Beauchemin
I have updated the package to support iHealth API.

It was tricky because they do not follow common conventions but it works with some workarounds.

The only issue I could not test is to make a successful API call to get the user info because it requires some serial number code and value.

You can replace that in the example script if you have real values if you have them and let me know if it works.

  4. Re: Request to add iHealth   Reply   Report abuse  
Picture of Eric Beauchemin Eric Beauchemin - 2017-03-16 14:40:22 - In reply to message 3 from Manuel Lemos
Cool! I will check it out probably next week because I'm a bit busy right now.

Thank you so much!
Eric

  5. Re: Request to add iHealth   Reply   Report abuse  
Picture of Eric Beauchemin Eric Beauchemin - 2017-03-22 18:46:04 - In reply to message 4 from Eric Beauchemin
Hi Manuel!

It works perfectly! I have been able to connect and get data for Blood pressure, weight and userInfo.

Thank you so much for your work! :-)

Eric

  6. Re: Request to add iHealth   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-03-22 22:42:35 - In reply to message 5 from Eric Beauchemin
Great.

  7. Re: Request to add iHealth   Reply   Report abuse  
Picture of Eric Beauchemin Eric Beauchemin - 2017-03-23 18:21:32 - In reply to message 6 from Manuel Lemos
Me again,

don't know if it's worth it but may I suggest a minor correction in login_with_iHealth.php line 124

replace
echo '<h1>', HtmlSpecialChars($user->nickname),

with
echo '<h1>', HtmlSpecialChars($user->UserInfoList[0]->nickname), ...

to get the nickname correctly

Like you said, they don't do things like convention says...


Thanks again!