10-30-2015 10:48
10-30-2015 10:48
Hello,
We have an application that uses OAuth 2.0 to make API calls for step counts. This application was working until about a week ago, when I started getting the following error message:
Request failed for https://api.fitbit.com/1/user/-/profile.json returned code 403. Truncated server response: {"errors":[{"errorType":"insufficient_scope","message":"This application does not have permission to access profile data. Visit https://dev.fitbit.... (use muteHttpExceptions option to examine full response)
From reading related discussion posts, it looks like the issue is that I am trying to make calls for the profile scope without permission. However, I only need data from the activity scope, which is specified within my code. Could you let me know if I'm on the right track, or how I can best proceed to get there? Should I obtain permission for profile data, or can I bypass this and edit the application to only call for activity? I'm happy to provide any information you need through private message. Thanks!
10-30-2015 11:05
10-30-2015 11:05
@IRNAFLD1 wrote:
Hello,
We have an application that uses OAuth 2.0 to make API calls for step counts. This application was working until about a week ago, when I started getting the following error message:
Request failed for https://api.fitbit.com/1/user/-/profile.json returned code 403. Truncated server response: {"errors":[{"errorType":"insufficient_scope","message":"This application does not have permission to access profile data. Visit https://dev.fitbit.... (use muteHttpExceptions option to examine full response)
From reading related discussion posts, it looks like the issue is that I am trying to make calls for the profile scope without permission. However, I only need data from the activity scope, which is specified within my code. Could you let me know if I'm on the right track, or how I can best proceed to get there? Should I obtain permission for profile data, or can I bypass this and edit the application to only call for activity? I'm happy to provide any information you need through private message. Thanks!
If you dont need anything from the profile endpoint, then you can simply remove that call and avoid this altogether. Otherwise yes, you will need to request th profile scope.
11-02-2015 05:23
11-02-2015 05:23
Thanks for your help. Please forgive me, but someone else wrote this code for us who is no longer here and I don't have much experience with .gs script. Could you give me some advice as to how I might find the profile call in the code? What would be the name of the function, or what are some key words I can look for specific to this action?
11-02-2015 09:13
11-02-2015 09:13
@IRNAFLD1 wrote:
Thanks for your help. Please forgive me, but someone else wrote this code for us who is no longer here and I don't have much experience with .gs script. Could you give me some advice as to how I might find the profile call in the code? What would be the name of the function, or what are some key words I can look for specific to this action?
Try looking for the string "profile" or "profile.json" in the code.
11-02-2015 12:45
11-02-2015 12:45
06-09-2016 04:45
06-09-2016 04:45
Hi, in scope I request all scope but for me it always returns 403