Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sample for how to connect to FitBit from a console app. #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexGhiondea
Copy link
Contributor

The sample handles the authorization to FitBit and downloads the weight for
the current day.

Once the app is authorized, the token data is stored locally to avoid having to
re-authenticate every time. For brevity, the token is stored in plain text.

In order for the authorization to work it requires the app to be launched as
admin. That is required in order for the app to be able to listen to the
callback at 'http://localhost'. The app automatically handles this case.

@AlexGhiondea
Copy link
Contributor Author

/cc @aarondcoleman @WestDiscGolf

@AlexGhiondea AlexGhiondea changed the title Add a sample for how to use the FitBit client from a console app. Add a sample for how to connect to FitBit from a console app. Jul 18, 2017
The sample handles the authorization to FitBit and downloads the weight for
the current day.

Once the app is authorized, the token data is stored locally to avoid having to
re-authenticate every time. For brevity, the token is stored in plain text.

In order for the authorization to work it requires the app to be launched as
admin. That is required in order for the app to be able to listen to the
callback at 'http://localhost'. The app automatically handles this case.
@WestDiscGolf
Copy link
Contributor

That's pretty cool! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants