11-30-2015 20:56
11-30-2015 20:56
How can I make requests to API's such as food search without requiring the user to authenticate?
The Rate Limit section of the docs states:
"Your application can make 150 API requests per hour without a user access token and token secret. These types of API requests are for retrieving non-user data, such as Fitbit's general resources (Browse Activities, Get Activity, Search Foods, Get Food, and Get Food Units)."
I can't seem to find any examples on how to form such a request. I tried to make the food search request with the Authorization header set to "Basic "+ Base64 encoded clientID + ":" + api secret, like when getting the access token, but I get "insufficient_scope" in the response.
12-01-2015 10:29
12-01-2015 10:29
Fitbit does not support client-only requests with OAuth 2.0. When using OAuth 2.0, you will need to make requests on behalf of a user.
02-19-2017 10:12
02-19-2017 10:12
Jeremiah,
You said that all requests have to be made on behalf of a user. Can all requests be made using my user account? I have an app where you type the name of a food in an input field and it returns calories. Not all people who come to the site will have their own FitBit accounts. Will they need to have FitBit accounts in order to retrieve food data?
Thanks,
Lori