Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Logging swims

Hi,

 

Is it possible, via the API to log swims.  I run a large online community of swimmers and I'm considering fitbit integration where when swims are logged they are also posted to you guys.

 

Any help much appreciated.

 

Thanks

 

Richard.

Best Answer
0 Votes
1 REPLY 1

@formulatedigita wrote:

Hi,

 

Is it possible, via the API to log swims.  I run a large online community of swimmers and I'm considering fitbit integration where when swims are logged they are also posted to you guys.

 

Any help much appreciated.

 

Thanks

 

Richard.


Yes, please see:

https://dev.fitbit.com/docs/activity/#activity-logging

 

To get different activity types including different kinds of swimming activites, please see:

https://dev.fitbit.com/docs/activity/#activity-types

 

Here are some examples:

{
              "accessLevel": "PUBLIC",
              "activityLevels":  [
                 {
                  "id": 58001,
                  "maxSpeedMPH": 0.9,
                  "mets": 4,
                  "minSpeedMPH": -1,
                  "name": "less than 25 yards/min"
                },
                 {
                  "id": 18240,
                  "maxSpeedMPH": 1.7,
                  "mets": 8,
                  "minSpeedMPH": 1,
                  "name": "25-50 yards/min"
                },
                 {
                  "id": 58002,
                  "maxSpeedMPH": 2.6,
                  "mets": 11,
                  "minSpeedMPH": 1.8,
                  "name": "50-75 yards/min"
                },
                 {
                  "id": 58003,
                  "maxSpeedMPH": 3.4,
                  "mets": 14,
                  "minSpeedMPH": 2.7,
                  "name": "75-100 yards/min"
                }
              ],
              "hasSpeed": true,
              "id": 90024,
              "name": "Swimming"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18230,
              "mets": 10,
              "name": "Swimming laps, freestyle, fast, vigorous effort"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18250,
              "mets": 7,
              "name": "Swimming, backstroke, general"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18260,
              "mets": 10,
              "name": "Swimming, breaststroke, general"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18270,
              "mets": 11,
              "name": "Swimming, butterfly, general"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18280,
              "mets": 11,
              "name": "Swimming, crawl, fast (75 yards/minute), vigorous effort"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18290,
              "mets": 8,
              "name": "Swimming, crawl, slow (50 yards/minute), moderate or light effort"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18300,
              "mets": 6,
              "name": "Swimming, lake, ocean, river"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18310,
              "mets": 6,
              "name": "Swimming, leisurely, not lap swimming, general"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18320,
              "mets": 8,
              "name": "Swimming, sidestroke, general"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18330,
              "mets": 8,
              "name": "Swimming, synchronized"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18340,
              "mets": 10,
              "name": "Swimming, treading water, fast vigorous effort"
            },
             {
              "accessLevel": "PUBLIC",
              "hasSpeed": false,
              "id": 18350,
              "mets": 4,
              "name": "Swimming, treading water, moderate effort, general"
            },
Best Answer
0 Votes