From 2841c9d9e955da6cc3c5962e002538700e8ffbbb Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 10 Jan 2018 22:06:55 +0100 Subject: [PATCH] Package fitbit: Fix activity summary URL. --- fitbit/fitbit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0