{"action":"opened","issue":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/HealthKit/issues/46","labels_url":"https://api.github.com/repos/Telerik-Verified-Plugins/HealthKit/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Telerik-Verified-Plugins/HealthKit/issues/46/comments","events_url":"https://api.github.com/repos/Telerik-Verified-Plugins/HealthKit/issues/46/events","html_url":"https://github.com/Telerik-Verified-Plugins/HealthKit/issues/46","id":97248947,"number":46,"title":"Not able to retrieve blood group type. Error is \"sampleType was invalid\"","user":{"login":"qnimate","id":7037606,"avatar_url":"https://avatars.githubusercontent.com/u/7037606?v=3","gravatar_id":"","url":"https://api.github.com/users/qnimate","html_url":"https://github.com/qnimate","followers_url":"https://api.github.com/users/qnimate/followers","following_url":"https://api.github.com/users/qnimate/following{/other_user}","gists_url":"https://api.github.com/users/qnimate/gists{/gist_id}","starred_url":"https://api.github.com/users/qnimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qnimate/subscriptions","organizations_url":"https://api.github.com/users/qnimate/orgs","repos_url":"https://api.github.com/users/qnimate/repos","events_url":"https://api.github.com/users/qnimate/events{/privacy}","received_events_url":"https://api.github.com/users/qnimate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-25T19:31:32Z","updated_at":"2015-07-25T19:31:32Z","closed_at":null,"body":"Here is the code that's not working\r\n\r\n```\r\nwindow.plugins.healthkit.checkAuthStatus({\r\n                    \"type\"  : \"HKCharacteristicTypeIdentifierBloodType\"\r\n                  },\r\n                  function(){\r\n                    window.plugins.healthkit.querySampleType(\r\n                      {\r\n                        'startDate' : new Date(new Date().getTime()-2*24*60*60*1000), // two days ago\r\n                        'endDate'   : new Date(), // now\r\n                        'sampleType': 'HKCharacteristicTypeIdentifierBloodType'\r\n                      },\r\n                      function(){},\r\n                      function(e){alert(e);}\r\n                    );\r\n                  }\r\n                );\r\n```\r\n\r\nPlease help. Its urgent. Thanks in advance."}}