07-10-2017 10:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-10-2017 10:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
Just looking for a clarification in your documentation here:
https://dev.fitbit.com/docs/subscriptions/#adding-a-subscription
Right now, I'm just going to query for "activities", so I know how to create the URL now. But in the future, if we add one other field for retrieval, would the URL look like this:
POST https://api.fitbit.com/1/user/-/activities%20foods/apiSubscriptions/320.json
Or would it have to look like this:
POST https://api.fitbit.com/1/user/-/activities/apiSubscriptions/320json
POST https://api.fitbit.com/1/user/-/foods/apiSubscriptions/320.json
The space-delimited approach was used above in the authentication scope process, so I thought you might use it here as well.
Thanks,
Carmine

- Labels:
-
JavaScript
07-10-2017 10:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-10-2017 10:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Also, I'm assuming that you don't want me to put user_id into the path, because all of your examples are using "-" there instead. Are you getting the user_id from the access token? That's fine by me ... just let me know if that's not the case.
Thanks,
Carmine

07-10-2017 10:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-10-2017 10:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
And a related question:
