06-23-2017 04:34
06-23-2017 04:34
I want to access intra-day data via the API. However, when I register an app with the Application Type "Personal", I haven't been able to generate OAuth access tokens to access it successfully.
I have tried the interactive OAuth Tutorial page, which gives me an error saying "Developer information: unauthorized_client - A "Personal" application is only authorized to request access tokens from the owner of the application." It all works without any problems when I set to the Application Type "Server" (but this doesn't give me the intra-day data). I have been using the python-fitbit library to interact with the API.
Could anyone give me any information or examples on how to authorise Personal apps, please?
Thanks.
06-29-2017 07:57
06-29-2017 07:57
@davkell You're seeing that error for "Personal" because you're requesting data for a user that isn't the app owner (needs to be the user/account that registered the app). I would double check what account you're requesting data for.
06-30-2017 00:29
06-30-2017 00:29
Thanks @AndrewFitbit.
Is there a way to generate the appropriate tokens for a Personal App using the interactive OAuth Tutorial? I'm not clear about how the authorisation flow works for a Personal app, as opposed to a Server app.
07-03-2017 08:45
07-03-2017 08:45
@davkell For "Personal" app types, you can use Implicit Grant Flow or Authorization Code Flow, whereas "Server" type, you can only use Authorization Code Flow. You should be able to generate appropriate tokens using the tutorial, just make sure you're using the "app owner" account when you're using a "Personal" app type.
08-05-2019 10:00
08-05-2019 10:00
The app you're trying to connect did not provide valid information to Fitbit. Please report this issue to them.
Developer information: unauthorized_client - The client is not authorized to request an access token using this method
Why am I getting this for Implicit Grant Flow? I'm trying to build an app to access HR from my device? Thanks for your response in advance.
08-05-2019 11:16
08-05-2019 11:16
Hi @ShreeTya,
I'm sorry to hear that you are running into this error. So that I can investigate, can you please private message me your Client ID?
Also, let me know the following information:
I look forward to hearing from you. Please let me know if you have additional questions.
08-05-2019 11:38
08-05-2019 11:38
Hi @ShreeTya
I have created case 31652382 to work with you through the authorization errors. You can include the information requested by John in the case email I just sent you.
Thanks!
Gordon