Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2018 06-05 - Tokyo Fitbit Developers - Fitbit SDK & Web API Overview

15 views

Published on

2018 06-05 - Tokyo Fitbit Developers - Fitbit SDK & Web API Overview

Published in: Technology
  • Be the first to comment

  • Be the first to like this

2018 06-05 - Tokyo Fitbit Developers - Fitbit SDK & Web API Overview

  1. 1. Frédéric Harper Senior Developer Evangelist @ Fitbit Fitbit SDK & Web API Overview @fharper Tokyo Fitbit Developers - 2018-06-05 @fitbitdev
  2. 2. #made4fitbit
  3. 3. Fitbit OS SDK
  4. 4. ● Standards based SDK with JavaScript, SVG & CSS ● Easily create apps from anywhere with Fitbit Studio ● Simulator available on macOS & Windows Developer Platform
  5. 5. Platform Architecture
  6. 6. Platform Architecture
  7. 7. ● Developers request permissions ● Users accept requests on install Permissions
  8. 8. ● Uses React JSX ● Make clock faces and apps configurable ● Prebuilt components for easy setup ● Persist data in settingsStorage ● Simple OAuth Settings
  9. 9. //Resources like CSS, images or GUI files /resources/filename~SCREEN-RESOLUTION.ext //Specific /resources/styles~300x300.css /resources/styles~348x250.css //Fallback /resources/styles.css Multiple Devices Resource Files
  10. 10. //Device API import { me as device } from "device"; //Companion API import { device } from "peer"; //Backward compatibility if (!device.screen) device.screen = { width: 348, height: 250 }; Multiple Devices
  11. 11. Clock face Development Station
  12. 12. Fitbit Web API
  13. 13. ● Activity ● Body & Weight ● Devices ● Food Logging ● Friends REST APIs ● Heart Rate ● Sleep ● Subscriptions ● User
  14. 14. { "Activities":[ { "activityId":51007, "activityParentId":90019, "Calories":230, "Description":"7mph", "Distance":2.04, "Duration":1097053, "hasStartTime":true, "isFavorite":true, ... JSON
  15. 15. dev.fitbit.com
  16. 16. be a local ambassador
  17. 17. Have fun!
  18. 18. Frédéric Harper fharper@fitbit.com dev.fitbit.com outofcomfortzone.net

×