From: Florian Forster Date: Wed, 10 Jan 2018 21:06:55 +0000 (+0100) Subject: Package fitbit: Fix activity summary URL. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2841c9d9e955da6cc3c5962e002538700e8ffbbb;p=kraftakt.git Package fitbit: Fix activity summary URL. --- diff --git a/fitbit/fitbit.go b/fitbit/fitbit.go index 0f1a583..6f15027 100644 --- a/fitbit/fitbit.go +++ b/fitbit/fitbit.go @@ -140,7 +140,7 @@ func NewClient(ctx context.Context, fitbitUserID string, u *app.User) (*Client, } func (c *Client) ActivitySummary(t time.Time) (*ActivitySummary, error) { - url := fmt.Sprintf("https://api.fitbit.com/1/user/%s/activity/date/%s.json", + url := fmt.Sprintf("https://api.fitbit.com/1/user/%s/activities/date/%s.json", c.fitbitUserID, t.Format("2006-01-02")) res, err := c.client.Get(url)