11-23-2018 02:49
11-23-2018 02:49
I've implemented aAuth for login in Android app.
I'm able to access the sleep data for the user who is logged in but I'm not able to access sleep data of child through API. I get following error.
{
"errors": [
{
"errorType": "insufficient_permissions",
"message": "API client is not authorized by the resource owner to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
}
],
"success": false
}
Any clues?
Answered! Go to the Best Answer.
12-07-2018 11:59
12-07-2018 11:59
@SushilKadu, we don't expose kids data through the Web APIs.
11-26-2018 12:59 - edited 02-22-2019 16:24
11-26-2018 12:59 - edited 02-22-2019 16:24
I'm not sure if it is possible, but you might need to be logged into the child's account.
The error you see says that the Child has not have access to your script.
11-28-2018 02:07
11-28-2018 02:07
So I'm logged in as parent and trying to access sleep data for child thats when error is thrown. But i'm able to access steps data for child.
12-07-2018 11:59
12-07-2018 11:59
@SushilKadu, we don't expose kids data through the Web APIs.
04-28-2020 06:25
04-28-2020 06:25
Why not? Either you trust your security framework or you don’t... it still requires a authenticated session. If you don’t trust it, then you shouldn’t be selling it and marketing it to kids (or adults for that matter).