https://github.com/cuuupid/fitbit-boilerplate
Boilerplate for FitBit API auth
https://github.com/cuuupid/fitbit-boilerplate
Last synced: 28 days ago
JSON representation
Boilerplate for FitBit API auth
- Host: GitHub
- URL: https://github.com/cuuupid/fitbit-boilerplate
- Owner: cuuupid
- Created: 2018-04-15T19:24:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T18:56:46.000Z (about 7 years ago)
- Last Synced: 2025-02-09T21:44:59.746Z (3 months ago)
- Language: HTML
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FitBit Auth Boilerplate
## Getting Started
Edit the top of `config.js` with the appropriate configuration (client id, domain, etc) from dev.fitbit.com.
It is highly recommended to use a domain. See [Surge.sh](http://surge.sh) for free static hosting--just install and use `surge .` to upload your static website.
See `app.html` for starter HTML boilerplate on making an app with the access token and user ID. Each time you go to a different page, you'll want to encode the access token and user ID into the URL. You may also set a cookie but this is reliant on the client allowing cookies which isn't always the case (also this is soon to be illegal without a Privacy Policy under GDPR).