{"action":"closed","number":25,"pull_request":{"url":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/25","id":50997807,"html_url":"https://github.com/orcasgit/django-fitbit/pull/25","diff_url":"https://github.com/orcasgit/django-fitbit/pull/25.diff","patch_url":"https://github.com/orcasgit/django-fitbit/pull/25.patch","issue_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues/25","number":25,"state":"closed","locked":false,"title":"ignore badrequest errors for floors/elevation","user":{"login":"brad","id":1614,"avatar_url":"https://avatars.githubusercontent.com/u/1614?v=3","gravatar_id":"","url":"https://api.github.com/users/brad","html_url":"https://github.com/brad","followers_url":"https://api.github.com/users/brad/followers","following_url":"https://api.github.com/users/brad/following{/other_user}","gists_url":"https://api.github.com/users/brad/gists{/gist_id}","starred_url":"https://api.github.com/users/brad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brad/subscriptions","organizations_url":"https://api.github.com/users/brad/orgs","repos_url":"https://api.github.com/users/brad/repos","events_url":"https://api.github.com/users/brad/events{/privacy}","received_events_url":"https://api.github.com/users/brad/received_events","type":"User","site_admin":false},"body":"@grokcode @percyperez Please review.\r\nAccording to a [Fitbit employee](https://community.fitbit.com/t5/Web-API/floors-data-url/m-p/1007446#M3511) it is expected that the API will return an HTTP 400 error for \"floors\" and \"elevation\" data when the user does not have a device with an altimeter. My simple workaround is to ignore these types of errors for these resource types. In real world testing, we see that we get the errors for the `floors`, `tracker/floors`, `elevation`, and `tracker/elevation` resource types.","created_at":"2015-11-17T20:11:19Z","updated_at":"2015-11-17T22:26:46Z","closed_at":"2015-11-17T22:26:46Z","merged_at":"2015-11-17T22:26:46Z","merge_commit_sha":"f98e57fc49a200238a86901ec8b682f34e400a7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/25/commits","review_comments_url":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/25/comments","review_comment_url":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues/25/comments","statuses_url":"https://api.github.com/repos/orcasgit/django-fitbit/statuses/a57c87bafb48b7a4b3770460e89fd63402080e61","head":{"label":"orcasgit:ignore-bad-request","ref":"ignore-bad-request","sha":"a57c87bafb48b7a4b3770460e89fd63402080e61","user":{"login":"orcasgit","id":9833,"avatar_url":"https://avatars.githubusercontent.com/u/9833?v=3","gravatar_id":"","url":"https://api.github.com/users/orcasgit","html_url":"https://github.com/orcasgit","followers_url":"https://api.github.com/users/orcasgit/followers","following_url":"https://api.github.com/users/orcasgit/following{/other_user}","gists_url":"https://api.github.com/users/orcasgit/gists{/gist_id}","starred_url":"https://api.github.com/users/orcasgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcasgit/subscriptions","organizations_url":"https://api.github.com/users/orcasgit/orgs","repos_url":"https://api.github.com/users/orcasgit/repos","events_url":"https://api.github.com/users/orcasgit/events{/privacy}","received_events_url":"https://api.github.com/users/orcasgit/received_events","type":"Organization","site_admin":false},"repo":{"id":4838979,"name":"django-fitbit","full_name":"orcasgit/django-fitbit","owner":{"login":"orcasgit","id":9833,"avatar_url":"https://avatars.githubusercontent.com/u/9833?v=3","gravatar_id":"","url":"https://api.github.com/users/orcasgit","html_url":"https://github.com/orcasgit","followers_url":"https://api.github.com/users/orcasgit/followers","following_url":"https://api.github.com/users/orcasgit/following{/other_user}","gists_url":"https://api.github.com/users/orcasgit/gists{/gist_id}","starred_url":"https://api.github.com/users/orcasgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcasgit/subscriptions","organizations_url":"https://api.github.com/users/orcasgit/orgs","repos_url":"https://api.github.com/users/orcasgit/repos","events_url":"https://api.github.com/users/orcasgit/events{/privacy}","received_events_url":"https://api.github.com/users/orcasgit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orcasgit/django-fitbit","description":"","fork":false,"url":"https://api.github.com/repos/orcasgit/django-fitbit","forks_url":"https://api.github.com/repos/orcasgit/django-fitbit/forks","keys_url":"https://api.github.com/repos/orcasgit/django-fitbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orcasgit/django-fitbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orcasgit/django-fitbit/teams","hooks_url":"https://api.github.com/repos/orcasgit/django-fitbit/hooks","issue_events_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues/events{/number}","events_url":"https://api.github.com/repos/orcasgit/django-fitbit/events","assignees_url":"https://api.github.com/repos/orcasgit/django-fitbit/assignees{/user}","branches_url":"https://api.github.com/repos/orcasgit/django-fitbit/branches{/branch}","tags_url":"https://api.github.com/repos/orcasgit/django-fitbit/tags","blobs_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orcasgit/django-fitbit/statuses/{sha}","languages_url":"https://api.github.com/repos/orcasgit/django-fitbit/languages","stargazers_url":"https://api.github.com/repos/orcasgit/django-fitbit/stargazers","contributors_url":"https://api.github.com/repos/orcasgit/django-fitbit/contributors","subscribers_url":"https://api.github.com/repos/orcasgit/django-fitbit/subscribers","subscription_url":"https://api.github.com/repos/orcasgit/django-fitbit/subscription","commits_url":"https://api.github.com/repos/orcasgit/django-fitbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/orcasgit/django-fitbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues/comments{/number}","contents_url":"https://api.github.com/repos/orcasgit/django-fitbit/contents/{+path}","compare_url":"https://api.github.com/repos/orcasgit/django-fitbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orcasgit/django-fitbit/merges","archive_url":"https://api.github.com/repos/orcasgit/django-fitbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orcasgit/django-fitbit/downloads","issues_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues{/number}","pulls_url":"https://api.github.com/repos/orcasgit/django-fitbit/pulls{/number}","milestones_url":"https://api.github.com/repos/orcasgit/django-fitbit/milestones{/number}","notifications_url":"https://api.github.com/repos/orcasgit/django-fitbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orcasgit/django-fitbit/labels{/name}","releases_url":"https://api.github.com/repos/orcasgit/django-fitbit/releases{/id}","created_at":"2012-06-30T01:41:02Z","updated_at":"2015-02-20T20:37:16Z","pushed_at":"2015-11-17T22:26:46Z","git_url":"git://github.com/orcasgit/django-fitbit.git","ssh_url":"git@github.com:orcasgit/django-fitbit.git","clone_url":"https://github.com/orcasgit/django-fitbit.git","svn_url":"https://github.com/orcasgit/django-fitbit","homepage":null,"size":184,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"orcasgit:master","ref":"master","sha":"8fb6c38ecb3d2716814abf2af5eae9f472d03c97","user":{"login":"orcasgit","id":9833,"avatar_url":"https://avatars.githubusercontent.com/u/9833?v=3","gravatar_id":"","url":"https://api.github.com/users/orcasgit","html_url":"https://github.com/orcasgit","followers_url":"https://api.github.com/users/orcasgit/followers","following_url":"https://api.github.com/users/orcasgit/following{/other_user}","gists_url":"https://api.github.com/users/orcasgit/gists{/gist_id}","starred_url":"https://api.github.com/users/orcasgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcasgit/subscriptions","organizations_url":"https://api.github.com/users/orcasgit/orgs","repos_url":"https://api.github.com/users/orcasgit/repos","events_url":"https://api.github.com/users/orcasgit/events{/privacy}","received_events_url":"https://api.github.com/users/orcasgit/received_events","type":"Organization","site_admin":false},"repo":{"id":4838979,"name":"django-fitbit","full_name":"orcasgit/django-fitbit","owner":{"login":"orcasgit","id":9833,"avatar_url":"https://avatars.githubusercontent.com/u/9833?v=3","gravatar_id":"","url":"https://api.github.com/users/orcasgit","html_url":"https://github.com/orcasgit","followers_url":"https://api.github.com/users/orcasgit/followers","following_url":"https://api.github.com/users/orcasgit/following{/other_user}","gists_url":"https://api.github.com/users/orcasgit/gists{/gist_id}","starred_url":"https://api.github.com/users/orcasgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcasgit/subscriptions","organizations_url":"https://api.github.com/users/orcasgit/orgs","repos_url":"https://api.github.com/users/orcasgit/repos","events_url":"https://api.github.com/users/orcasgit/events{/privacy}","received_events_url":"https://api.github.com/users/orcasgit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orcasgit/django-fitbit","description":"","fork":false,"url":"https://api.github.com/repos/orcasgit/django-fitbit","forks_url":"https://api.github.com/repos/orcasgit/django-fitbit/forks","keys_url":"https://api.github.com/repos/orcasgit/django-fitbit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orcasgit/django-fitbit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orcasgit/django-fitbit/teams","hooks_url":"https://api.github.com/repos/orcasgit/django-fitbit/hooks","issue_events_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues/events{/number}","events_url":"https://api.github.com/repos/orcasgit/django-fitbit/events","assignees_url":"https://api.github.com/repos/orcasgit/django-fitbit/assignees{/user}","branches_url":"https://api.github.com/repos/orcasgit/django-fitbit/branches{/branch}","tags_url":"https://api.github.com/repos/orcasgit/django-fitbit/tags","blobs_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/refs{/sha}","trees_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orcasgit/django-fitbit/statuses/{sha}","languages_url":"https://api.github.com/repos/orcasgit/django-fitbit/languages","stargazers_url":"https://api.github.com/repos/orcasgit/django-fitbit/stargazers","contributors_url":"https://api.github.com/repos/orcasgit/django-fitbit/contributors","subscribers_url":"https://api.github.com/repos/orcasgit/django-fitbit/subscribers","subscription_url":"https://api.github.com/repos/orcasgit/django-fitbit/subscription","commits_url":"https://api.github.com/repos/orcasgit/django-fitbit/commits{/sha}","git_commits_url":"https://api.github.com/repos/orcasgit/django-fitbit/git/commits{/sha}","comments_url":"https://api.github.com/repos/orcasgit/django-fitbit/comments{/number}","issue_comment_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues/comments{/number}","contents_url":"https://api.github.com/repos/orcasgit/django-fitbit/contents/{+path}","compare_url":"https://api.github.com/repos/orcasgit/django-fitbit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orcasgit/django-fitbit/merges","archive_url":"https://api.github.com/repos/orcasgit/django-fitbit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orcasgit/django-fitbit/downloads","issues_url":"https://api.github.com/repos/orcasgit/django-fitbit/issues{/number}","pulls_url":"https://api.github.com/repos/orcasgit/django-fitbit/pulls{/number}","milestones_url":"https://api.github.com/repos/orcasgit/django-fitbit/milestones{/number}","notifications_url":"https://api.github.com/repos/orcasgit/django-fitbit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orcasgit/django-fitbit/labels{/name}","releases_url":"https://api.github.com/repos/orcasgit/django-fitbit/releases{/id}","created_at":"2012-06-30T01:41:02Z","updated_at":"2015-02-20T20:37:16Z","pushed_at":"2015-11-17T22:26:46Z","git_url":"git://github.com/orcasgit/django-fitbit.git","ssh_url":"git@github.com:orcasgit/django-fitbit.git","clone_url":"https://github.com/orcasgit/django-fitbit.git","svn_url":"https://github.com/orcasgit/django-fitbit","homepage":null,"size":184,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/25"},"html":{"href":"https://github.com/orcasgit/django-fitbit/pull/25"},"issue":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/issues/25"},"comments":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/orcasgit/django-fitbit/statuses/a57c87bafb48b7a4b3770460e89fd63402080e61"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"percyperez","id":2349,"avatar_url":"https://avatars.githubusercontent.com/u/2349?v=3","gravatar_id":"","url":"https://api.github.com/users/percyperez","html_url":"https://github.com/percyperez","followers_url":"https://api.github.com/users/percyperez/followers","following_url":"https://api.github.com/users/percyperez/following{/other_user}","gists_url":"https://api.github.com/users/percyperez/gists{/gist_id}","starred_url":"https://api.github.com/users/percyperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percyperez/subscriptions","organizations_url":"https://api.github.com/users/percyperez/orgs","repos_url":"https://api.github.com/users/percyperez/repos","events_url":"https://api.github.com/users/percyperez/events{/privacy}","received_events_url":"https://api.github.com/users/percyperez/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":9,"deletions":1,"changed_files":1}}