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 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.
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