Skip to content

Cannot retrieve goals #47

Open
Open
@schweerelos

Description

@schweerelos

How do I retrieve a user's goals for body weight, water or activities? They are in the collection resource part of the API, so I tried authd_client.__COLLECTION_RESOURCE('foods/log/water'). However, this appends today's date to the URL and the resulting URL is eg https://api.fitbit.com/1/user/-/foods/log/water/goal/date/2014-12-28.json. The API wants the URL to be just GET /<api-version>/user/-/foods/log/water/goal.<response-format> instead (see https://wiki.fitbit.com/display/API/API-Get-Water-Goal), so I'm getting an HttpBadRequest exception.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions