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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@SushilKadu, we don't expose kids data through the Web APIs.
Best AnswerSo 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.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@SushilKadu, we don't expose kids data through the Web APIs.
Best AnswerWhy 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).