10-14-2024 02:54
10-14-2024 02:54
I want to code the example respose properly in AppsScript as shown in the picture below.
correct :
I coded the part marked in green in Apps Script, but it does not work properly.
worng:
Please tell me how to code it?
Best Answer10-14-2024 11:21 - edited 10-14-2024 11:22
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.
10-14-2024 11:21 - edited 10-14-2024 11:22
Hi @ydk12
I believe this situation is similar to your other question in the forums. The URI parameter values, such as "[date]", needs to be either hard coded in the endpoint or you need to reference it as a variable in the code and supply the variable with a value. You did changed the URI parameter [user-id] with "-". The reason the profile endpoint works is because it doesn't have any additional URI parameters besides the user-id, which you hardcoded with a "-".
Best Answer