{"action":"created","issue":{"url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/66","labels_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/66/comments","events_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/66/events","html_url":"https://github.com/orcasgit/python-fitbit/issues/66","id":91775662,"number":66,"title":"Problem getting intraday HR from Charge HR","user":{"login":"robertheinze","id":12094678,"avatar_url":"https://avatars.githubusercontent.com/u/12094678?v=3","gravatar_id":"","url":"https://api.github.com/users/robertheinze","html_url":"https://github.com/robertheinze","followers_url":"https://api.github.com/users/robertheinze/followers","following_url":"https://api.github.com/users/robertheinze/following{/other_user}","gists_url":"https://api.github.com/users/robertheinze/gists{/gist_id}","starred_url":"https://api.github.com/users/robertheinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertheinze/subscriptions","organizations_url":"https://api.github.com/users/robertheinze/orgs","repos_url":"https://api.github.com/users/robertheinze/repos","events_url":"https://api.github.com/users/robertheinze/events{/privacy}","received_events_url":"https://api.github.com/users/robertheinze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-29T11:13:11Z","updated_at":"2015-07-20T07:17:24Z","closed_at":null,"body":"Hi Brad, me again - sorry\r\n\r\nI want to read out the HR from Fitbit Charge HR but I always run into this ...\r\nTraceback (most recent call last):\r\n  File \"fitbit_heartrate.py\", line 12, in <module>\r\n    intradayH = authd_client.intraday_time_series('activities/heart', base_date = 'today', detail_level = '1min')\r\n  File \"/usr/local/lib/python2.7/dist-packages/fitbit-0.1.3-py2.7.egg/fitbit/api.py\", line 389, in intraday_time_series\r\n    return self.make_request(url)\r\n  File \"/usr/local/lib/python2.7/dist-packages/fitbit-0.1.3-py2.7.egg/fitbit/api.py\", line 201, in make_request\r\n    response = self.client.make_request(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/fitbit-0.1.3-py2.7.egg/fitbit/api.py\", line 96, in make_request\r\n    raise HTTPBadRequest(response)\r\nfitbit.exceptions.HTTPBadRequest: Resource owner is required\r\n\r\nI am calling it like:\r\nimport fitbit\r\nimport json\r\n\r\nCLIENT_KEY = '7644256......99106bc0d90e'\r\nCLIENT_SECRET = '87eacfb......6ac33c91e1'\r\nACCESS_TOKEN = 'eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0......x7tDE1Y6SB7q3c_Mrc'\r\nREFRESH_TOKEN = 'cac2ebab561434178fa104f.....027553eb6fde84df4db49af060'\r\n\r\nauthd_client = fitbit.Fitbit(CLIENT_KEY, CLIENT_SECRET, oauth2=True, access_token=ACCESS_TOKEN, refresh_token=REFRESH_TOKEN)\r\n\r\nintradayH = authd_client.intraday_time_series('activities/heart', base_date = 'today', detail_level = '1min')\r\n\r\nf = open('datadumpHeart.json', 'w')\r\njson.dump(intradayH, f)\r\n\r\nDo you have an idea for this?\r\nThanks\r\nRobert\r\n"},"comment":{"url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/comments/122784062","html_url":"https://github.com/orcasgit/python-fitbit/issues/66#issuecomment-122784062","issue_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/66","id":122784062,"user":{"login":"robertheinze","id":12094678,"avatar_url":"https://avatars.githubusercontent.com/u/12094678?v=3","gravatar_id":"","url":"https://api.github.com/users/robertheinze","html_url":"https://github.com/robertheinze","followers_url":"https://api.github.com/users/robertheinze/followers","following_url":"https://api.github.com/users/robertheinze/following{/other_user}","gists_url":"https://api.github.com/users/robertheinze/gists{/gist_id}","starred_url":"https://api.github.com/users/robertheinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertheinze/subscriptions","organizations_url":"https://api.github.com/users/robertheinze/orgs","repos_url":"https://api.github.com/users/robertheinze/repos","events_url":"https://api.github.com/users/robertheinze/events{/privacy}","received_events_url":"https://api.github.com/users/robertheinze/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T07:17:24Z","updated_at":"2015-07-20T07:17:24Z","body":"@brad Thanks the 8080/ made it.\r\nI still get the errors mentioned in the issue, but I think that FitBit granted robert.heinze@me.com the Partner API rights wrong. So I contacted them again. I'll let you know."}}