none
Unable to retrieve my personal records in console application RRS feed

  • Question

  • Hi

    I am a newbie in Healthvault sdk 1.3.1, I am using app id (app.id=bafb1313-d4e0-421c-b3b5-4e3a55639c19 )packaged in the bundle for web, and I am able to enter weight information online. I wanted to access the weight information offline for which I am using the same app id for web. I am able to retrieve authorized users name (PersonId, RecordId) but I am NOT able to retrieve and my personID & recordID information. Please help.

    The code snippet is as follows:

    SimpleRequestTemplate requestTemplate = new  SimpleRequestTemplate(
                    ConnectionFactory.getConnection());

    GetAuthorizedPeopleRequest request = new GetAuthorizedPeopleRequest();
            GetAuthorizedPeopleParameters params = new GetAuthorizedPeopleParameters();
                    request.setParameters(params);

    GetAuthorizedPeopleResponseWrapper response =
                (GetAuthorizedPeopleResponseWrapper)requestTemplate.makeRequest(request);
            System.out.println(response.getResponseResults().getPersonInfo().size());
            for(PersonInfo p : response.getResponseResults().getPersonInfo())
            {  

      
                List<Record> listRecords = p.getRecord();
                if(p.getPersonId().equals("ab100003-4c99-42a0-bac5-ede691f9b0be"))
                    System.out.println("SUCCESS");

            }

    Thanks in advance

    Senthinil


    • Edited by senthinil Tuesday, March 5, 2013 1:42 AM
    Tuesday, March 5, 2013 1:41 AM

All replies

  • Can you please take a look at the Offline Access sample in the SDK at \SDK\DotNet\WebSamples\OfflineAccess?
    Tuesday, March 5, 2013 2:21 AM