10-14-2024 02:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-14-2024 02:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?

- Labels:
-
JavaScript
10-14-2024 11:21 - edited 10-14-2024 11:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



10-14-2024 11:21 - edited 10-14-2024 11:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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 "-".
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

