V2Solutions
asked on
Ms Health Vault API with PHP - GEtThings Method Problem
Hi,
I am using ms health vault api with php to get the person personal and health records.
I am able to get the person personal record object successfully using GetPersonInfo method.
But when i am going to use GetThings method to get the health data of that person then it retrieve a blank object.
I am passing below xml for GetThings method with person-id and record-id get by above GetPersonInfo method.
Method : GetThings
App-id : 750fd0da-69e3-426d-a0aa-fe 3a3b1d18d6
Person-id : 580e6793-c6b9-4c36-be7e-8d 7eb7806d55
Record-id : cd662189-1fea-4710-bc41-bc 2d48466616
XML are as below :
<header>
<method>GetThings</method>
<method-version>3</method- version>
<record-id>cd662189-1fea-4 710-bc41-b c2d4846661 6</record- id>
<auth-session>
<auth-token>ASAAAAc0l5GS90 9AhtAG6lle j2Xs9JS6jv +HleawUseT SwGbNOfVz0 1meBRSuK7H kr5vXy92Xe u9xqltkofM 0ehCUQutJ4 t1UouRK5/s YvzCYhOkgT 9+MkIY2Zie EoiEH3+cFJ BCInyxuH+J l2YyT9Z4hT wks7XPYym6 I/7I0QECDw JELwgssEwE jxSpmV4Aqz 5wzc/ZSaoM DeLy5rfAp5 NOeJFzXEb7 kfKTEFhxeo DPei6OecNf 17oCxHnAsC Wy5zDhXrxi Qr/UzB7YO5 S82uKFw1/z paC+mwcQH2 hZe3zJG7hZ sOqW6QIJYT nAgqgTLfMz PA==</auth -token>
<offline-person-info>
<offline-person-id>580e679 3-c6b9-4c3 6-be7e-8d7 eb7806d55< /offline-p erson-id>
</offline-person-info>
</auth-session>
<language>en</language>
<country>US</country>
<msg-time>2011-04-11T18:22 :24.648Z</ msg-time>
<msg-ttl>1800</msg-ttl>
<version>1.1.1.1</version>
<info-hash>
<hash-data algName="SHA256">sRg29ByjZ wZyUuqU/yf 5eCfpWsBqM nVrw9QrseM IES4=</has h-data>
</info-hash>
</header>
Info xml :
<header>
<method>GetThings</method>
<method-version>3</method- version>
<record-id>eb1deb81-96e6-4 8b7-9e4b-d 0401d27a48 7</record- id>
<auth-session>
<auth-token>ASAAAAc0l5GS90 9AhtAG6lle j2Xs9JS6jv +HleawUseT SwGbNOfVz0 1meBRSuK7H kr5vXy92Xe u9xqltkofM 0ehCUQutJ4 t1UouRK5/s YvzCYhOkgT 9+MkIY2Zie EoiEH3+cFJ BCInyxuH+J l2YyT9Z4hT wks7XPYym6 I/7I0QECDw JELwgssEwE jxSpmV4Aqz 5wzc/ZSaoM DeLy5rfAp5 NOeJFzXEb7 kfKTEFhxeo DPei6OecNf 17oCxHnAsC Wy5zDhXrxi Qr/UzB7YO5 S82uKFw1/z paC+mwcQH2 hZe3zJG7hZ sOqW6QIJYT nAgqgTLfMz PA==</auth -token>
<offline-person-info>
<offline-person-id>1978e31 8-20e5-4a6 0-bd35-e8a c4394ec87< /offline-p erson-id>
</offline-person-info>
</auth-session>
<language>en</language>
<country>US</country>
<msg-time>2011-04-11T18:22 :24.648Z</ msg-time>
<msg-ttl>1800</msg-ttl>
<version>1.1.1.1</version>
<info-hash>
<hash-data algName="SHA256">sRg29ByjZ wZyUuqU/yf 5eCfpWsBqM nVrw9QrseM IES4=</has h-data>
</info-hash>
</header>
My response object : (Null)
object(GetThingsResponseOb ject)#21 (1) { ["thingResponseGroups":pro tected]=> array(1) { [0]=> object(ThingResponseGroup) #25 (4) { ["things":protected]=> array(0) { } ["unprocessedThingKeyInfos ":protecte d]=> array(0) { } ["filtered":protected]=> bool(false) ["name":protected]=> string(0) "" } } }
Please provide your help ASAP...
Thanks & Regards,
I am using ms health vault api with php to get the person personal and health records.
I am able to get the person personal record object successfully using GetPersonInfo method.
But when i am going to use GetThings method to get the health data of that person then it retrieve a blank object.
I am passing below xml for GetThings method with person-id and record-id get by above GetPersonInfo method.
Method : GetThings
App-id : 750fd0da-69e3-426d-a0aa-fe
Person-id : 580e6793-c6b9-4c36-be7e-8d
Record-id : cd662189-1fea-4710-bc41-bc
XML are as below :
<header>
<method>GetThings</method>
<method-version>3</method-
<record-id>cd662189-1fea-4
<auth-session>
<auth-token>ASAAAAc0l5GS90
<offline-person-info>
<offline-person-id>580e679
</offline-person-info>
</auth-session>
<language>en</language>
<country>US</country>
<msg-time>2011-04-11T18:22
<msg-ttl>1800</msg-ttl>
<version>1.1.1.1</version>
<info-hash>
<hash-data algName="SHA256">sRg29ByjZ
</info-hash>
</header>
Info xml :
<header>
<method>GetThings</method>
<method-version>3</method-
<record-id>eb1deb81-96e6-4
<auth-session>
<auth-token>ASAAAAc0l5GS90
<offline-person-info>
<offline-person-id>1978e31
</offline-person-info>
</auth-session>
<language>en</language>
<country>US</country>
<msg-time>2011-04-11T18:22
<msg-ttl>1800</msg-ttl>
<version>1.1.1.1</version>
<info-hash>
<hash-data algName="SHA256">sRg29ByjZ
</info-hash>
</header>
My response object : (Null)
object(GetThingsResponseOb
Please provide your help ASAP...
Thanks & Regards,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You posted this question in May, saying Please provide your help ASAP... and then you left it without comment until August, then gave a bad grade. What should I have done to earn an "A" here? Why didn't you provide and comment or feedback?
ASKER