08-25-2022 13:46 - edited 08-25-2022 17:33
08-25-2022 13:46 - edited 08-25-2022 17:33
I'm using the API and I was wondering if you can help me figure out why I get two different results?
When I use normal curl command, I get the steps and intraday steps.
When I do the request using python, I only get the steps and no intraday steps at all.
This is the api that I use
https://api.fitbit.com/1/user/-/activities/steps/date/2022-08-24/1d/1min.json
and this is the response I get. The app was given permission
{
"activities-steps": [
{
"dateTime": "2022-08-24",
"value": "1559"
}
]
}
and this are the access given to the app
What am I missing?
08-26-2022 09:16
08-26-2022 09:16
Hi @ac_devel
Would you please confirm these 2 things for me?
1. Does the python app and the curl command use the same access token when querying the endpoint, or are they referencing the same client ID?
2. Would you confirm the endpoint syntax in the python application and curl command are the same?
Gordon
08-26-2022 10:21
08-26-2022 10:21
hi @Gordon-C.
The curl command and the python command are the same.
I made a confusion: when I run the curl command from swagger ui for Fitbit, I get the intraday breakdown both curl and python.
When I run the same thing with my app's authorization, I don't get the intraday breakdown.
So syntax wise, curl and python are the same.
As per the authorization, I am using my app's generated authorization but it looks as if it's not allowed to access the intraday data.
I am using Implicit Grant Flow.
08-26-2022 11:22
08-26-2022 11:22
So looking around, it seems like I have to ask permission from Fitbit to access user data since my app is a 3rd party app. Can anyone confirm?
A Fitbit developer’s personal Intraday data is automatically available through the “Personal” application type. You do not need to submit a request.
3rd-party developers who want access to retrieve other Fitbit users’ Intraday data through the “Client” or “Server” application type is granted on a case-by-case basis. Applications must demonstrate necessity to create a great user experience. Fitbit is very supportive of non-profit research and personal projects. Commercial applications require thorough review and are subject to additional requirements. Only select applications are granted access and Fitbit reserves the right to limit this access. 3rd-party developers who require intraday access should submit a request by filling out the following form:
09-01-2022 14:01
09-01-2022 14:01
Hi @ac_devel
Yes, if you need access to other user's intraday data, then you must request access by completing the form: https://dev.fitbit.com/build/reference/web-api/intraday/
Gordon