{"action":"created","issue":{"url":"https://api.github.com/repos/NickHeiner/fitbit-export/issues/4","repository_url":"https://api.github.com/repos/NickHeiner/fitbit-export","labels_url":"https://api.github.com/repos/NickHeiner/fitbit-export/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/NickHeiner/fitbit-export/issues/4/comments","events_url":"https://api.github.com/repos/NickHeiner/fitbit-export/issues/4/events","html_url":"https://github.com/NickHeiner/fitbit-export/issues/4","id":146784555,"number":4,"title":"Setup","user":{"login":"jibanes","id":1454666,"avatar_url":"https://avatars.githubusercontent.com/u/1454666?v=3","gravatar_id":"","url":"https://api.github.com/users/jibanes","html_url":"https://github.com/jibanes","followers_url":"https://api.github.com/users/jibanes/followers","following_url":"https://api.github.com/users/jibanes/following{/other_user}","gists_url":"https://api.github.com/users/jibanes/gists{/gist_id}","starred_url":"https://api.github.com/users/jibanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibanes/subscriptions","organizations_url":"https://api.github.com/users/jibanes/orgs","repos_url":"https://api.github.com/users/jibanes/repos","events_url":"https://api.github.com/users/jibanes/events{/privacy}","received_events_url":"https://api.github.com/users/jibanes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-08T01:12:05Z","updated_at":"2016-04-10T23:38:44Z","closed_at":null,"body":"Nick,\r\n\r\nI'm trying to setup fitbit-export, I registered a new app on fitbit.com, and I was issued:\r\n\r\n* OAuth 2.0 Client ID\r\n* Client (Consumer) Secret\r\n* OAuth 2.0: Authorization URI (set to https://www.fitbit.com/oauth2/authorize)\r\n* OAuth 2.0: Access/Refresh Token Request URI (set to https://api.fitbit.com/oauth2/token)\r\n* Client (Consumer) Key\r\n* OAuth 1.0a: Temporary Credentials (Request Token) URL\r\n* OAuth 1.0a: Token Credentials (Access Token) URL\r\n* OAuth 1.0a: Authorize URL\r\n\r\nyour application expects the following environment variables, as I understand:\r\n    FITBIT_DATA_EXPORT_CLIENT_KEY\r\n    FITBIT_DATA_EXPORT_CLIENT_SECRET\r\n    FITBIT_DATA_EXPORT_DEV_CLIENT_KEY\r\n    FITBIT_DATA_EXPORT_DEV_CLIENT_SECRET\r\n\r\nand presumably\r\n    FITBIT_DATA_EXPORT_SESSION_SECRET\r\n    FITBIT_DATA_EXPORT_DEV_SESSION_SECRET\r\n\r\nCould you tell me which value goes where? Also, once I login, through your app, to fitbit.com, I get issued what looks like a hash, but I'm not sure where it ultimately goes.\r\n\r\nFinally, when setting up an application on dev.fitbit.com, what should those settings be like:\r\n* OAuth 2.0 Application Type\r\n* Callback URL\r\n* Default Access Type\r\n* Add a subscriber (?)\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/NickHeiner/fitbit-export/issues/comments/208092642","html_url":"https://github.com/NickHeiner/fitbit-export/issues/4#issuecomment-208092642","issue_url":"https://api.github.com/repos/NickHeiner/fitbit-export/issues/4","id":208092642,"user":{"login":"NickHeiner","id":829827,"avatar_url":"https://avatars.githubusercontent.com/u/829827?v=3","gravatar_id":"","url":"https://api.github.com/users/NickHeiner","html_url":"https://github.com/NickHeiner","followers_url":"https://api.github.com/users/NickHeiner/followers","following_url":"https://api.github.com/users/NickHeiner/following{/other_user}","gists_url":"https://api.github.com/users/NickHeiner/gists{/gist_id}","starred_url":"https://api.github.com/users/NickHeiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickHeiner/subscriptions","organizations_url":"https://api.github.com/users/NickHeiner/orgs","repos_url":"https://api.github.com/users/NickHeiner/repos","events_url":"https://api.github.com/users/NickHeiner/events{/privacy}","received_events_url":"https://api.github.com/users/NickHeiner/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T23:38:44Z","updated_at":"2016-04-10T23:38:44Z","body":"What are you trying to do? Why are you trying to run the server locally instead of just using http://fitbit-export.azurewebsites.net/ where it is deployed? \r\n\r\nI'm glad that my clarification helped. \r\n\r\nI'm not quite sure what you're asking. Fitbit will make your authentication expire eventually. Why do you care if your cookie expires? Is downloading the CSV once not good enough?"}}