projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26c56d0
)
Package fitbit: Fix activity summary URL.
author
Florian Forster
<ff@octo.it>
Wed, 10 Jan 2018 21:06:55 +0000
(22:06 +0100)
committer
Florian Forster
<ff@octo.it>
Wed, 10 Jan 2018 21:06:55 +0000
(22:06 +0100)
fitbit/fitbit.go
patch
|
blob
|
history
diff --git
a/fitbit/fitbit.go
b/fitbit/fitbit.go
index
0f1a583
..
6f15027
100644
(file)
--- 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/activit
y
/date/%s.json",
+ url := fmt.Sprintf("https://api.fitbit.com/1/user/%s/activit
ies
/date/%s.json",
c.fitbitUserID, t.Format("2006-01-02"))
res, err := c.client.Get(url)