/
fit_bit.json
828 lines (828 loc) · 38.5 KB
/
fit_bit.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
{
"_id": "52f97cc5a9909344830004ec",
"application": {
"base": "http://api.fitbit.com/1",
"resources": [
{
"path": "/user/-/activities/frequent.json",
"doc": {
"t": "Get a list of a user's frequent activities in the format requested using units in the unit system which corresponds to the Accept-Language header provided. A frequent activity record contains the distance and duration values recorded the last time the activity was logged. The record retrieved can therefore be used to log the activity via the Log Activity with the same or adjusted values for distance and duration.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Frequent-Activities"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/activities/frequent.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/activities/frequent.json"
},
{
"path": "/user/:user_id/activities/date/:date.json",
"doc": {
"t": "Get a summary and list of a user's activities and activity log entries for a given day in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Activities"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/activities/date/:date.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/activities/date/:date.json"
},
{
"path": "/user/-/activities.json",
"doc": {
"t": "Create log entry for an activity using units in the unit system which corresponds to the Accept-Language header provided (or using optional custom distanceUnit).",
"url": "http://wiki.fitbit.com/display/API/API-Log-Activity"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/activities.json?activityId=90009&startTime=12:20&durationMillis=600000&date=2011-07-11&distance=1.5",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/activities.json"
},
{
"path": "/user/-/activities/log/favorite/:id.json",
"doc": {
"t": "Delete the activity with the given id from user's list of favorite activities.",
"url": "http://wiki.fitbit.com/display/API/API-Delete-Favorite-Activity"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/activities/log/favorite/90009.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/activities/log/favorite/:id.json"
},
{
"path": "/user/-/activities/log/favorite/:id.json",
"doc": {
"t": "Adds the activity with the given id to user's list of favorite activities.",
"url": "http://wiki.fitbit.com/display/API/API-Add-Favorite-Activity"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/activities/log/favorite/90009.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/activities/log/favorite/:id.json"
},
{
"path": "/user/-/activities/:activity_log_id.json",
"doc": {
"t": "Delete user's activity log entry with the given id.",
"url": "http://wiki.fitbit.com/display/API/API-Delete-Activity-Log"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/activites/:activity_log_id.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/activities/:activity_log_id.json"
},
{
"path": "/user/-/activities.json",
"doc": {
"t": "Get user's activity statistics in the format requested using units in the unit system which corresponds to the Accept-Language header provided. Response contains both lifetime statistics from the tracker device and total numbers including the manual activity log entries as seen on the Fitbit website dashboard.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Activity-Stats"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/activities.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/activities.json"
},
{
"path": "/user/:user_id/activities/log/calories/date/:start_date/:end_date.json",
"doc": {
"t": "Get time series in the specified range for a given resource in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Time-Series"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/activities/log/calories/date/:end_date/7d.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/activities/log/calories/date/:start_date/:end_date.json"
},
{
"path": "/user/-/activities/recent.json",
"doc": {
"t": "Get a list of a user's recent activities in the format requested using units in the unit system which corresponds to the Accept-Language header provided. A recent activity record contains the distance and duration values recorded the last time the activity was logged. The record retrieved can therefore be used to log the activity via the Log Activity with the same or adjusted values for distance and duration.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Recent-Activities"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/activities/recent.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/activities/recent.json"
},
{
"path": "/user/-/activities/favorite.json",
"doc": {
"t": "Get a list of a user's favorite activities in the format requested. A user marks an activity as favorite on the user's Activities Tab. The activity ids in the list can be used to create a new activity log entry via the Log Activity.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Recent-Activities"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/activities/favorite.json",
"authentication": {
"required": "true"
},
"category": "ACTIVITIES",
"displayName": "ACTIVITIES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/activities/favorite.json"
},
{
"path": "/user/:user_id/body/weight/date/:start_date/:end_date.json",
"doc": {
"t": "Get time series in the specified range for a given resource in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Time-Series"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/body/weight/date/:end_date/7d.json",
"authentication": {
"required": "true"
},
"category": "BODY",
"displayName": "BODY_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/body/weight/date/:start_date/:end_date.json"
},
{
"path": "/user/:user_id/body/date/:date.json",
"doc": {
"t": "Get a summary of a user's body measurements for a given day in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Body-Measurements"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/body/date/:date.json",
"authentication": {
"required": "true"
},
"category": "BODY",
"displayName": "BODY_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/body/date/:date.json"
},
{
"path": "/user/-/body.json",
"doc": {
"t": "Log body measurements using units in the unit system that corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Body-Measurements"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/body.json?date=2011-10-27&weight=150&fat=14.4",
"authentication": {
"required": "true"
},
"category": "BODY",
"displayName": "BODY_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/body.json"
},
{
"path": "/user/-/bp.json",
"doc": {
"t": "Create log entry for a blood pressure measurement and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Blood-Pressure"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/bp.json?systolic=120&diastolic=80&date=2011-07-06",
"authentication": {
"required": "true"
},
"category": "BP",
"displayName": "BP_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/bp.json"
},
{
"path": "/user/-/bp/:bp_log_id.json",
"doc": {
"t": "Delete user's blood pressure log entry with the given id.",
"url": "http://wiki.fitbit.com/display/API/API-Delete-Blood-Pressure-Log"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/bp/:bp_log_id.json",
"authentication": {
"required": "true"
},
"category": "BP",
"displayName": "BP_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/bp/:bp_log_id.json"
},
{
"path": "/user/-/bp/date/:date.json",
"doc": {
"t": "Get an average value and a list of user's blood pressure log entries for a given day in the format requested. Blood pressure log entries are available only to authorized user. Blood pressure log entries in response are sorted exactly the same as they are presented on the Fitbit website.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Blood-Pressure"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/bp/date/:date.json",
"authentication": {
"required": "true"
},
"category": "BP",
"displayName": "BP_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/bp/date/:date.json"
},
{
"path": "/user/-/devices.json",
"doc": {
"t": "Retrieve the list of Fitbit devices for a user in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Devices"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/devices.json",
"authentication": {
"required": "true"
},
"category": "DEVICES",
"displayName": "DEVICES_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/devices.json"
},
{
"path": "/user/-/foods/log/frequent.json",
"doc": {
"t": "Get a list of a user's frequent foods in the format requested. A frequent food in the list provides a quick way to log the food via the Log Food endpoint.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Frequent-Foods"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/frequent.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/foods/log/frequent.json"
},
{
"path": "/user/:user_id/foods/log/date/:date.json",
"doc": {
"t": "Get a summary and list of a user's food log entries for a given day in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Foods"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/foods/log/date/:date.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/foods/log/date/:date.json"
},
{
"path": "/foods.json",
"doc": {
"t": "Create new private food for a user and get a response in a format requested. Created private food could be found in results of Search Foods call.",
"url": "http://wiki.fitbit.com/display/API/API-Create-Food"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/foods.json?name=Icecream,big&defaultFoodMeasurementUnitId=147&defaultServingSize=1&calories=500",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/foods.json"
},
{
"path": "/user/-/foods/log/water/:water_log_id.json",
"doc": {
"t": "Delete user's water log entry with the given id.",
"url": "http://wiki.fitbit.com/display/API/Delete-Water-Log"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/water/:water_log_id.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/foods/log/water/:water_log_id.json"
},
{
"path": "/user/-/foods/log/:food_log_id.json",
"doc": {
"t": "Delete the user's food log entry with the given id.",
"url": "http://wiki.fitbit.com/display/API/API-Delete-Food-Log"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/:food_log_id.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/foods/log/:food_log_id.json"
},
{
"path": "/user/-/foods/log/water/date/:date.json",
"doc": {
"t": "Get a summary and list of a user's water log entries for a given day in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Water"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/water/date/:date.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/foods/log/water/date/:date.json"
},
{
"path": "/user/-/foods/log/water.json",
"doc": {
"t": "Create log entry for a water using units in the unit system that corresponds to the Accept-Language header provided (or waterUnit) and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Water"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/water.json?amount=300&date=2011-07-06",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/foods/log/water.json"
},
{
"path": "/user/-/foods/log/favorite/:id.json",
"doc": {
"t": "Delete the food with the given id from user's list of favorite foods.",
"url": "http://wiki.fitbit.com/display/API/API-Delete-Favorite-Food"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/favorite/30414.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/foods/log/favorite/:id.json"
},
{
"path": "/user/-/foods/log.json",
"doc": {
"t": "Create log entry for a food. You need to select one of the unit ids to create a food log entry. It is possible to fetch unit ids allowed for specific food via previous calls to endpoints that retrieve food lists of the user. Each unit id maps to a unit in the list returned via the Get Food Units API call.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Food"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/foods/log.json?foodId=30414&mealTypeId=1&unitId=147&amount=1&date=2011-07-06",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/foods/log.json"
},
{
"path": "/user/-/foods/log/favorite/:id.json",
"doc": {
"t": "Add the food with the given id to user's list of favorite foods.",
"url": "http://wiki.fitbit.com/display/API/API-Add-Favorite-Food"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/favorite/30414.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/foods/log/favorite/:id.json"
},
{
"path": "/user/-/foods/log/recent.json",
"doc": {
"t": "Get a list of a user's recent foods in the format requested. A recent food provides a quick way to log the food via the Log Food endpoint.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Recent-Foods"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/recent.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/foods/log/recent.json"
},
{
"path": "/user/:user_id/foods/log/caloriesIn/date/:start_date/:end_date.json",
"doc": {
"t": "Get time series in the specified range for a given resource in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Time-Series"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/foods/log/caloriesIn/date/:end_date/7d.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/foods/log/caloriesIn/date/:start_date/:end_date.json"
},
{
"path": "/user/-/activities/favorite.json",
"doc": {
"t": "Get a list of a user's favorite foods in the format requested. A user marks a food as favorite on the user's Food Tab tab. A favorite food in the list provides a quick way to log the food via the Log Food endpoint.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Favorite-Foods"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/foods/log/favorite.json",
"authentication": {
"required": "true"
},
"category": "FOODS",
"displayName": "FOODS_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/activities/favorite.json"
},
{
"path": "/foods/:food_id.json",
"doc": {
"t": "Get the details of a specific food in Fitbit Food database (or private food for the user) in the format requested. Note, that nutritional values currently included in response only for the private foods.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Food"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/foods/30414.json",
"authentication": {
"required": "true"
},
"category": "GENERAL",
"displayName": "GENERAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/foods/:food_id.json"
},
{
"path": "/activities.json",
"doc": {
"t": "Get a tree of all valid Fitbit public activities from the activities catalog as well as private custom activities the user created in the format requested. If activity has levels, also get a list of activity level details.",
"url": "http://wiki.fitbit.com/display/API/API-Browse-Activities"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/activities.json",
"authentication": {
"required": "true"
},
"category": "GENERAL",
"displayName": "GENERAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/activities.json"
},
{
"path": "/activities/:id.json",
"doc": {
"t": "Get the details of a specific activity in Fitbit activities database in the format requested. If activity has levels, also get list of activity level details.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Activity"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/activities/90009.json",
"authentication": {
"required": "true"
},
"category": "GENERAL",
"displayName": "GENERAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/activities/:id.json"
},
{
"path": "/foods/search.json?query=:query",
"doc": {
"t": "Given a search query, get a list of public foods from Fitbit foods database and private foods the user created in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Activity"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/foods/search.json?query=Icecream",
"authentication": {
"required": "true"
},
"category": "GENERAL",
"displayName": "GENERAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/foods/search.json?query=:query"
},
{
"path": "/foods/units.json",
"doc": {
"t": "Get list of all valid Fitbit food units in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Food-Units"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/foods/units.json",
"authentication": {
"required": "true"
},
"category": "GENERAL",
"displayName": "GENERAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/foods/units.json"
},
{
"path": "/user/-/glucose/date/:date.json",
"doc": {
"t": "Get a list of user's blood glucose and HbA1C measurements for a given day in the format requested using units in the unit system which corresponds to the Accept-Language header provided. Glucose measurement log entries are available only to authorized user. We always include all glucose trackers in the response body (with zero glucose value for the days with no measurements) to allow to seamlessly fetch a list of all additional user created custom trackers.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Glucose"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/glucose/date/:date.json",
"authentication": {
"required": "true"
},
"category": "GLUCOSE",
"displayName": "GLUCOSE_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/glucose/date/:date.json"
},
{
"path": "/user/-/glucose.json",
"doc": {
"t": "Create log entry for a blood glucose measurement and/or HbA1c using units in the unit system which corresponds to the Accept-Language header provided and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Glucose"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/glucose.json?hba1c=4.5&tracker=Afternoon&glucose=3&time=12:30&date=2011-07-06",
"authentication": {
"required": "true"
},
"category": "GLUCOSE",
"displayName": "GLUCOSE_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/glucose.json"
},
{
"path": "/user/-/heart.json",
"doc": {
"t": "Create log entry for a heart rate measurement and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Heart-Rate"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/heart.json?tracker=Running&heartRate=80&date=2011-07-06",
"authentication": {
"required": "true"
},
"category": "HEART",
"displayName": "HEART_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/heart.json"
},
{
"path": "/user/-/heart/date/:date.json",
"doc": {
"t": "Get an average values and a list of user's heart rate log entries for a given day in the format requested. Heart rate data available only to the authorized user. Heart rate log entries in response are sorted exactly the same as they are presented on the Fitbit website. We always include all heart rate trackers in the \"average\" section of the response body (with zero average values for the days with no measurements) to allow to seamlessly fetch a list of all additional user created custom trackers.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Heart-Rate"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/heart/date/:date.json",
"authentication": {
"required": "true"
},
"category": "HEART",
"displayName": "HEART_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/heart/date/:date.json"
},
{
"path": "/user/-/heart/:heart_log_id.json",
"doc": {
"t": "Delete user's heart rate log entry with the given id.",
"url": "http://wiki.fitbit.com/display/API/API-Delete-Heart-Rate-Log"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/heart/:heart_log_id.json",
"authentication": {
"required": "true"
},
"category": "HEART",
"displayName": "HEART_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/heart/:heart_log_id.json"
},
{
"path": "/user/-/profile.json",
"doc": {
"t": "Update user's profile using units in the unit system that corresponds to the Accept-Language header provided and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Update-User-Info"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/profile.json?gender=FEMALE",
"authentication": {
"required": "true"
},
"category": "PROFILE",
"displayName": "PROFILE_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/profile.json"
},
{
"path": "/user/:user_id/profile.json",
"doc": {
"t": "Get user's profile in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-User-Info"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/profile.json",
"authentication": {
"required": "true"
},
"category": "PROFILE",
"displayName": "PROFILE_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/profile.json"
},
{
"path": "/user/-/sleep/:sleep_log_id.json",
"doc": {
"t": "Delete user's sleep log entry with the given id.",
"url": "http://wiki.fitbit.com/display/API/Delete-Sleep-Log"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/sleep/:sleep_log_id.json",
"authentication": {
"required": "true"
},
"category": "SLEEP",
"displayName": "SLEEP_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/sleep/:sleep_log_id.json"
},
{
"path": "/user/:user_id/sleep/date/:date.json",
"doc": {
"t": "Get a summary and list of a user's sleep log entries for a given day in the format requested. Endpoint returns summary for all sleep log entries for the given day (including naps). If you need data only for the main sleep you can fetch entry with \"isMainSleep\" = true or use Get-Time-Series calls.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Sleep"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/sleep/date/:date.json",
"authentication": {
"required": "true"
},
"category": "SLEEP",
"displayName": "SLEEP_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/sleep/date/:date.json"
},
{
"path": "/user/:user_id/sleep/minutesAsleep/date/:start_date/:end_date.json",
"doc": {
"t": "Get time series in the specified range for a given resource in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Time-Series"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/sleep/minutesAsleep/date/:end_date/7d.json",
"authentication": {
"required": "true"
},
"category": "SLEEP",
"displayName": "SLEEP_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/sleep/minutesAsleep/date/:start_date/:end_date.json"
},
{
"path": "/user/-/sleep.json",
"doc": {
"t": "Create log entry for a sleep and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/API-Log-Sleep"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/sleep.json?startTime=08:20&duration=24000000&date=2011-07-06",
"authentication": {
"required": "true"
},
"category": "SLEEP",
"displayName": "SLEEP_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/sleep.json"
},
{
"path": "/user/:user_id/friends.json",
"doc": {
"t": "Get user's friends in the format requested using units in the unit system which corresponds to the Accept-Language header provided.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Friends"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/:user_id/friends.json",
"authentication": {
"required": "true"
},
"category": "SOCIAL",
"displayName": "SOCIAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/:user_id/friends.json"
},
{
"path": "/user/-/friends/invitations.json",
"doc": {
"t": "Invite a user to become friends with authorized user. If you provide invitedUserEmail parameter with the request, standard friendship invitation email will be sent to the invited user, that he can accept later. Contrary, invitedUserId parameter creates an invite silently, so it could only be fetched through the Get Invites endpoint. You can accept or reject both invitation types on behalf of the authorized user via Accept Invite API call.",
"url": "http://wiki.fitbit.com/display/API/API-Create-Invite"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/friends/invitations.json?invitedUserEmail=:invited_user_email",
"authentication": {
"required": "true"
},
"category": "SOCIAL",
"displayName": "SOCIAL_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/friends/invitations.json"
},
{
"path": "/user/-/friends/invitations/:from_user_id.json",
"doc": {
"t": "Accept or reject an invite to become friends with inviting user.",
"url": "http://wiki.fitbit.com/display/API/API-Accept-Invite"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/friends/invitations/:from_user_id.json?accept=true",
"authentication": {
"required": "true"
},
"category": "SOCIAL",
"displayName": "SOCIAL_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/friends/invitations/:from_user_id.json"
},
{
"path": "/user/-/friends/leaders/:period.json",
"doc": {
"t": "Get a leaderboard of user's friends progress in the format requested using units in the unit system which corresponds to the Accept-Language header provided. Authorized user himself is also included in the response.",
"url": "http://wiki.fitbit.com/display/API/API-Get-Friends"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/friends/leaders/7d.json",
"authentication": {
"required": "true"
},
"category": "SOCIAL",
"displayName": "SOCIAL_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/friends/leaders/:period.json"
},
{
"path": "/user/-/:collection_path/apiSubscriptions.json",
"doc": {
"t": "Get a list of user's subscriptions for your application in the format requested.",
"url": "http://wiki.fitbit.com/display/API/Subscriptions-API#Subscriptions-API-Listexistingsubscriptions"
},
"curl": "curl -X GET -u 'username:password' http://api.fitbit.com/1/user/-/apiSubscriptions.json",
"authentication": {
"required": "true"
},
"category": "SUBSCRIPTIONS-API",
"displayName": "SUBSCRIPTIONS-API_GET",
"httpMethod": "GET",
"url": "http://api.fitbit.com/1/user/-/:collection_path/apiSubscriptions.json"
},
{
"path": "/user/-/:collection_path/apiSubscriptions/:subscription_id.json",
"doc": {
"t": "Delete a subscription for the user and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/Subscriptions-API#Subscriptions-API-Removeasubscription"
},
"curl": "curl -X DELETE -u 'username:password' http://api.fitbit.com/1/user/-/apiSubscriptions/:subscription_id.json",
"authentication": {
"required": "true"
},
"category": "SUBSCRIPTIONS-API",
"displayName": "SUBSCRIPTIONS-API_DELETE",
"httpMethod": "DELETE",
"url": "http://api.fitbit.com/1/user/-/:collection_path/apiSubscriptions/:subscription_id.json"
},
{
"path": "/user/-/:collection_path/apiSubscriptions/:subscription_id.json",
"doc": {
"t": "Add a subscription for the user to get notifications and get a response in the format requested.",
"url": "http://wiki.fitbit.com/display/API/Subscriptions-API#Subscriptions-API-Addasubscription"
},
"curl": "curl -X POST -u 'username:password' http://api.fitbit.com/1/user/-/apiSubscriptions/:subscription_id.json",
"authentication": {
"required": "true"
},
"category": "SUBSCRIPTIONS-API",
"displayName": "SUBSCRIPTIONS-API_POST",
"httpMethod": "POST",
"url": "http://api.fitbit.com/1/user/-/:collection_path/apiSubscriptions/:subscription_id.json"
}
]
},
"auth_strategy": "oauth",
"enabled": true,
"name": "FitBit",
"oauth": {
"development" : {
"consumerKey": "11206a3bb32b4a0fb7f938e45cca2085",
"consumerSecret": "2b27c5758e1c4f05b3b0768d0d28f3d8",
"callbackURL": "http://localhost:8080/api/oauth/fitbit/callback",
"tokenMethod": "oauth_signed"
},
"staging" : {
"consumerKey": "54d9d79246fb41819f61762a95e93337",
"consumerSecret": "f850175f0b2c4093a7be9dfa954c8b26",
"callbackURL": "https://staging.octoblu.com/api/oauth/fitbit/callback",
"tokenMethod": "oauth_signed"
},
"production" : {
"consumerKey": "ff2df0f481ba4fe3a5a4f7aa123264d0",
"consumerSecret": "d1322800587a493193e80bd3aab313db",
"callbackURL": "https://app.octoblu.com/api/oauth/fitbit/callback",
"tokenMethod": "oauth_signed"
}
},
"isPassport": true,
"type": "channel:fitbit"
}