Skip to content

Cannot retrieve goals #47

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.

Activity

  1. self-assigned this
    on Feb 21, 2015
  2. added this to the 0.2.0 milestone on Feb 21, 2015
  3. brad commented on Feb 21, 2015

    @brad
    Member

    Reading/Writing goals is a piece of the library that is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions