09-14-2017 23:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-14-2017 23:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello,
I teach 210 students in multiple college Kinesiology classes. They have to submit an exercise log at the end of the semester.
With the Web API is the following possible?
1. All students in each class (set as a group) or if groups not an option, add me as a friend.
2. Authorize my app to collect their data
3. Collect all students data at the end of the semester as an excel file which contains their full name along with daily exercise data.
If that is possible, are there any PHP examples?
Thanks in advance,
Tim
09-15-2017 21:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


09-15-2017 21:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
1. I don't know about groups/friends, but it may not be necessary anyway.
2. Each student would indeed need to authorize your app. You may well need to obtain prior approval from Fitbit for your app so that it would be permitted access to other users' data.
3. The API doesn't provide Excel-compatible files, but you can convert the data to .CSV using php easily enough. My crude attempt to do so is here.
Examples are scant. The best you'll probably find are with this php FitBit oauth2 library, which I used in my site.
Gondwana Software

09-17-2017 11:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-17-2017 11:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for your reply Catplace. I'll check into the links you referenced.
Tim

