{"action":"created","issue":{"url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/76","repository_url":"https://api.github.com/repos/orcasgit/python-fitbit","labels_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/76/comments","events_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/76/events","html_url":"https://github.com/orcasgit/python-fitbit/issues/76","id":124777261,"number":76,"title":"need to reauth too often?","user":{"login":"kevingoldsmith","id":423018,"avatar_url":"https://avatars.githubusercontent.com/u/423018?v=3","gravatar_id":"","url":"https://api.github.com/users/kevingoldsmith","html_url":"https://github.com/kevingoldsmith","followers_url":"https://api.github.com/users/kevingoldsmith/followers","following_url":"https://api.github.com/users/kevingoldsmith/following{/other_user}","gists_url":"https://api.github.com/users/kevingoldsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/kevingoldsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevingoldsmith/subscriptions","organizations_url":"https://api.github.com/users/kevingoldsmith/orgs","repos_url":"https://api.github.com/users/kevingoldsmith/repos","events_url":"https://api.github.com/users/kevingoldsmith/events{/privacy}","received_events_url":"https://api.github.com/users/kevingoldsmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-04T15:20:26Z","updated_at":"2016-04-03T00:15:28Z","closed_at":null,"body":"I'm a bit of an oauth2 noob, so sorry if this is a moronic question. \r\n\r\nUsing the branch with the oauth2 fix, I'm grabbing the credentials and storing them in a config file. Then I'm loading them when I want to access the API. I've got some code to download all the user's fitbit history (based on the old dump.py example). When I hit the API rate limit, I wait until the next hour, but at that time my tokens have expired. I thought that the API itself should be handling this case..."},"comment":{"url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/comments/204832379","html_url":"https://github.com/orcasgit/python-fitbit/issues/76#issuecomment-204832379","issue_url":"https://api.github.com/repos/orcasgit/python-fitbit/issues/76","id":204832379,"user":{"login":"SVendittelli","id":17616742,"avatar_url":"https://avatars.githubusercontent.com/u/17616742?v=3","gravatar_id":"","url":"https://api.github.com/users/SVendittelli","html_url":"https://github.com/SVendittelli","followers_url":"https://api.github.com/users/SVendittelli/followers","following_url":"https://api.github.com/users/SVendittelli/following{/other_user}","gists_url":"https://api.github.com/users/SVendittelli/gists{/gist_id}","starred_url":"https://api.github.com/users/SVendittelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SVendittelli/subscriptions","organizations_url":"https://api.github.com/users/SVendittelli/orgs","repos_url":"https://api.github.com/users/SVendittelli/repos","events_url":"https://api.github.com/users/SVendittelli/events{/privacy}","received_events_url":"https://api.github.com/users/SVendittelli/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T00:15:28Z","updated_at":"2016-04-03T00:15:28Z","body":"@kevingoldsmith How is it that you are grabbing the credentials? I'm trying to store them in a config also but can figure out how. Is it just a case of manually refreshing them and getting them then?"}}