René's URL Explorer Experiment


Title: Error trying to get heart data · Issue #151 · orcasgit/python-fitbit · GitHub

Open Graph Title: Error trying to get heart data · Issue #151 · orcasgit/python-fitbit

X Title: Error trying to get heart data · Issue #151 · orcasgit/python-fitbit

Description: Hi, I am developing a python application for my university and I need to access heart rate during an activity (avg data or something that tell me how user is performing during a run). I am using this api https://github.com/orcasgit/pytho...

Open Graph Description: Hi, I am developing a python application for my university and I need to access heart rate during an activity (avg data or something that tell me how user is performing during a run). I am using th...

X Description: Hi, I am developing a python application for my university and I need to access heart rate during an activity (avg data or something that tell me how user is performing during a run). I am using th...

Opengraph URL: https://github.com/orcasgit/python-fitbit/issues/151

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error trying to get heart data","articleBody":"Hi,\r\n\r\nI am developing a python application for my university and I need to access heart rate during an activity (avg data or something that tell me how user is performing during a run). I am using this api https://github.com/orcasgit/python-fitbit .\r\n\r\nI have this code\r\n\r\n \r\n\r\nfitbit_api.py\r\n\r\n```python\r\nimport fitbitPackage.fitbit\r\nimport fitbitPackage.gather_keys_oauth2 as Oauth2\r\nimport datetime\r\n\r\nclass FitbiAapi:\r\n    __client_id__ = None\r\n    __client_secret__ = None\r\n    __server__ = None\r\n    __access_token__ = None\r\n    __refresh_token__ = None\r\n    __auth_client__ = None\r\n\r\n    def __init__(self, client_id, client_secret):\r\n        self.__client_id__ = client_id\r\n        self.__client_secret__ = client_secret\r\n        self.__server__ = Oauth2.OAuth2Server(self.__client_id__, self.__client_secret__)\r\n    \r\n    def get_authorize_url(self):\r\n        return self.__server__.get_authorize_url()\r\n\r\n    def start_response_poll(self):\r\n        self.__server__.start_response_poll()\r\n        self.__access_token__ = str(self.__server__.fitbit.client.session.token['access_token'])\r\n        self.__refresh_token__ = str(self.__server__.fitbit.client.session.token['refresh_token'])\r\n        self.__auth_client__ = fitbitPackage.fitbit.Fitbit(self.__client_id__, self.__client_secret__, oauth2=True, access_token=self.__access_token__, refresh_token=self.__refresh_token__)\r\n\r\n    def get_auth_client(self) -\u003e fitbitPackage.fitbit.Fitbit:\r\n        return self.__auth_client__\r\n\r\n\r\ndef get_right_dateFormat(offset: int = 0) -\u003e str:\r\n    return str((datetime.datetime.now() - datetime.timedelta(days=offset)).strftime(\"%Y-%m-%d\"))\r\n \r\n```\r\n\r\n \r\n\r\nmain.py\r\n\r\n```python\r\nfrom fitbitPackage import fitbit_api, get_right_dateFormat\r\n\r\nprint(fitbit_api.get_authorize_url())\r\nfitbit_api.start_response_poll()\r\n\r\nclient = fitbit_api.get_auth_client()\r\n\r\ntoday_date = get_right_dateFormat()\r\nyesterday_date = get_right_dateFormat(-1)\r\n\r\nfitbit_stats = client._COLLECTION_RESOURCE('heart', date=today_date)\r\nprint (fitbit_stats)\r\n ```\r\n\r\nbut when I execute this code, i obtain this error:\r\n\r\n \r\n```\r\nTraceback (most recent call last):\r\n  File \"main_testFitBit.py\", line 11, in \u003cmodule\u003e\r\n    fitbit_stats = client._COLLECTION_RESOURCE('heart', date=today_date)\r\n  File \"C:\\Users\\gabri\\OneDrive\\Desktop\\AmIRunning-code\\src\\fitbitPackage\\fitbit\\api.py\", line 348, in _COLLECTION_RESOURCE\r\n    return self.make_request(url, data)\r\n  File \"C:\\Users\\gabri\\OneDrive\\Desktop\\AmIRunning-code\\src\\fitbitPackage\\fitbit\\api.py\", line 256, in make_request\r\n    response = self.client.make_request(*args, **kwargs)\r\n  File \"C:\\Users\\gabri\\OneDrive\\Desktop\\AmIRunning-code\\src\\fitbitPackage\\fitbit\\api.py\", line 99, in make_request\r\n    exceptions.detect_and_raise_error(response)\r\n  File \"C:\\Users\\gabri\\OneDrive\\Desktop\\AmIRunning-code\\src\\fitbitPackage\\fitbit\\exceptions.py\", line 86, in detect_and_raise_error\r\n    raise HTTPNotFound(response)\r\n\r\nfitbitPackage.fitbit.exceptions.HTTPNotFound: The API you are requesting could not be found.\r\n```\r\n\r\nWhy?","author":{"url":"https://github.com/thegabriele97","@type":"Person","name":"thegabriele97"},"datePublished":"2019-06-10T09:50:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/151/python-fitbit/issues/151"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd100b7c-fc89-2c95-7650-5b7e2b81c8e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF8C:30D218:DB9AF1:12D687B:696FF5DB
html-safe-nonce59c66e04928271d91a52219749981f89fd2873cf26b613e164a7c2682ce305f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjhDOjMwRDIxODpEQjlBRjE6MTJENjg3Qjo2OTZGRjVEQiIsInZpc2l0b3JfaWQiOiI4MjMwMjk4Njg5ODA5MTUxNDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac51ac48219eed290051aa2a900e402ad113e58d244c0181546cb0a6bf34faa72d
hovercard-subject-tagissue:454087807
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/orcasgit/python-fitbit/151/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fd24842e5bb1abc853c4191584d9dbec1d0a50745b1231ae556d7986a6a567ac/orcasgit/python-fitbit/issues/151
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd24842e5bb1abc853c4191584d9dbec1d0a50745b1231ae556d7986a6a567ac/orcasgit/python-fitbit/issues/151
og:image:altHi, I am developing a python application for my university and I need to access heart rate during an activity (avg data or something that tell me how user is performing during a run). I am using th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethegabriele97
hostnamegithub.com
expected-hostnamegithub.com
None61db99bbb6a7517db80567029869280bdefa9fa883092d6c2aa07ec4ea15f359
turbo-cache-controlno-preview
go-importgithub.com/orcasgit/python-fitbit git https://github.com/orcasgit/python-fitbit.git
octolytics-dimension-user_id9833
octolytics-dimension-user_loginorcasgit
octolytics-dimension-repository_id3472837
octolytics-dimension-repository_nwoorcasgit/python-fitbit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3472837
octolytics-dimension-repository_network_root_nwoorcasgit/python-fitbit
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release91ceb31fcdebd150222e05551caf4a28f9532341
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues/151#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forcasgit%2Fpython-fitbit%2Fissues%2F151
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forcasgit%2Fpython-fitbit%2Fissues%2F151
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=orcasgit%2Fpython-fitbit
Reloadhttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues/151
Reloadhttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues/151
Reloadhttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues/151
orcasgit https://patch-diff.githubusercontent.com/orcasgit
python-fitbithttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Forcasgit%2Fpython-fitbit
Fork 334 https://patch-diff.githubusercontent.com/login?return_to=%2Forcasgit%2Fpython-fitbit
Star 638 https://patch-diff.githubusercontent.com/login?return_to=%2Forcasgit%2Fpython-fitbit
Code https://patch-diff.githubusercontent.com/orcasgit/python-fitbit
Issues 40 https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues
Pull requests 20 https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/pulls
Actions https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/actions
Projects 0 https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/projects
Wiki https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/security
Please reload this pagehttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues/151
Insights https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/pulse
Code https://patch-diff.githubusercontent.com/orcasgit/python-fitbit
Issues https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues
Pull requests https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/pulls
Actions https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/actions
Projects https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/projects
Wiki https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/wiki
Security https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/security
Insights https://patch-diff.githubusercontent.com/orcasgit/python-fitbit/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/orcasgit/python-fitbit/issues/151
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/orcasgit/python-fitbit/issues/151
Error trying to get heart datahttps://patch-diff.githubusercontent.com/orcasgit/python-fitbit/issues/151#top
https://github.com/thegabriele97
https://github.com/thegabriele97
thegabriele97https://github.com/thegabriele97
on Jun 10, 2019https://github.com/orcasgit/python-fitbit/issues/151#issue-454087807
https://github.com/orcasgit/python-fitbithttps://github.com/orcasgit/python-fitbit
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.