Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Fitbit custom API

(0) ShareShare
ReportReport
Posted on by 1,304

Hi,

 

I am trying to connect to a fitbit API, the code is:

 

The error is:

 

Specified swagger has the following errors: 'Definition is not valid. Error: 'Error : paths/ : The path is not valid, it must start with a '/' character. '

 

 

swagger: '2.0'
info: {title: Fitbit, description: '', version: '1.0'}
host: api.fitbit.com
basePath: /
schemes: [https]
consumes: []
produces: []
paths:
'': {}
/1/user/[user-id]/activities/date/[date].json:
get:
responses:
default:
description: default
schema:
type: object
properties:
activities:
type: array
items:
type: object
properties:
activityId: {type: integer, format: int32, description: activityId}
activityParentId: {type: integer, format: int32, description: activityParentId}
calories: {type: integer, format: int32, description: calories}
description: {type: string, description: description}
distance: {type: number, format: float, description: distance}
duration: {type: integer, format: int32, description: duration}
hasStartTime: {type: boolean, description: hasStartTime}
isFavorite: {type: boolean, description: isFavorite}
logId: {type: integer, format: int32, description: logId}
name: {type: string, description: name}
startTime: {type: string, description: startTime}
steps: {type: integer, format: int32, description: steps}
description: activities
goals:
type: object
properties:
caloriesOut: {type: integer, format: int32, description: caloriesOut}
distance: {type: number, format: float, description: distance}
floors: {type: integer, format: int32, description: floors}
steps: {type: integer, format: int32, description: steps}
description: goals
summary:
type: object
properties:
activityCalories: {type: integer, format: int32, description: activityCalories}
caloriesBMR: {type: integer, format: int32, description: caloriesBMR}
caloriesOut: {type: integer, format: int32, description: caloriesOut}
distances:
type: array
items:
type: object
properties:
activity: {type: string, description: activity}
distance: {type: number, format: float, description: distance}
description: distances
elevation: {type: number, format: float, description: elevation}
fairlyActiveMinutes: {type: integer, format: int32, description: fairlyActiveMinutes}
floors: {type: integer, format: int32, description: floors}
lightlyActiveMinutes: {type: integer, format: int32, description: lightlyActiveMinutes}
marginalCalories: {type: integer, format: int32, description: marginalCalories}
sedentaryMinutes: {type: integer, format: int32, description: sedentaryMinutes}
steps: {type: integer, format: int32, description: steps}
veryActiveMinutes: {type: integer, format: int32, description: veryActiveMinutes}
description: summary
headers:
user-id: {description: user-id, type: string}
date: {description: date, type: string}
operationId: Activity
summary: Get Steps
description: Gets Steps
parameters:
- {name: user-id, in: header, required: false, type: string}
- {name: date, in: header, required: false, type: string}
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
oauth2_auth:
type: oauth2
flow: accessCode
authorizationUrl: https://www.fitbit.com/oauth2/authorize
tokenUrl: https://api.fitbit.com/oauth2/token
scopes: {activity: activity}
security:
- oauth2_auth: [activity]
tags: []

 

 

Can anyone help me understand what is happening ?

 

Thanks,

  • JonDoesFlow Profile Picture
    JonDoesFlow 1,304 on at
    Re: Fitbit custom API

    thanks for that, the issue was the scope

  • Verified answer
    Re: Fitbit custom API

    Please, check this video to see if you have everytnign configured.

    https://www.youtube.com/watch?v=hk_RdtUezWk

     

    Regards,

    Javier

    Hi Jondoesflow,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics