Authorization to fetch all records

Jul 18, 2011 at 7:35 PM
Edited Jul 18, 2011 at 8:02 PM

Hi,

 

In the Android Weighter app, I see that when it gets the token from the webview it only permits access for Weight Measurement. How do I enable the url to access data for all types of records(allergy, file, Glucose etc).?

Also to further add, in the method

createCreateApplicationIntent

  under ShellActivity.java, the URL constructed only accesses information for Weight Measurement, how do I change it to access any information?

 

Thanks.

Coordinator
Jul 18, 2011 at 8:26 PM

You can create your own application and assign it whatever types you are interested in:  https://config.healthvault-ppe.com.  Set the type of application to "SODA".  The types are under the "Soda App Rules" tab.  When you create your HealthVaultSettings, use your new application id as the master application id:

HealthVaultSettings settings = new HealthVaultFileSettings(this);

settings.setMasterAppId("c6ba979f-c342-4408-a2bc-0dfb43b2bf8d");
settings.setServiceUrl("https://platform.healthvault-ppe.com/platform/wildcat.ashx");
settings.setShellUrl("https://account.healthvault-ppe.com");

The application in the example only has access to Weight.

Jul 18, 2011 at 8:46 PM

Thanks. It works. Where can I read about all this nuances of HealthVault?

Coordinator
Jul 18, 2011 at 9:02 PM

Start here:  http://developer.healthvault.com/.  That site has links to other sources of information too.

--Rob