ClientID: "@FITBIT_CLIENT_ID@",
ClientSecret: "@FITBIT_CLIENT_SECRET@",
Endpoint: oauth2fitbit.Endpoint,
- RedirectURL: "https://fitbit-gfit-sync.appspot.com/fitbit/grant",
+ RedirectURL: "https://kraftakt.octo.it/fitbit/grant",
Scopes: []string{"activity", "heartrate", "profile"},
}
ClientID: "@GOOGLE_CLIENT_ID@",
ClientSecret: "@GOOGLE_CLIENT_SECRET@",
Endpoint: oauth2google.Endpoint,
- RedirectURL: "https://fitbit-gfit-sync.appspot.com/google/grant",
+ RedirectURL: "https://kraftakt.octo.it/google/grant",
Scopes: []string{
fitness.FitnessActivityWriteScope,
fitness.FitnessBodyWriteScope,
}
haveGoogleToken := err == nil
- fmt.Fprintln(w, "<html><body><h1>Fitbit to Google Fit sync</h1>")
+ fmt.Fprintln(w, "<html><head><title>Kraftakt</title></head>")
+ fmt.Fprintln(w, "<body><h1>Kraftakt</h1>")
+
+ fmt.Fprintln(w, "<p><strong>Kraftakt</strong> copies your <em>Fitbit</em> data to <em>Google Fit</em>, seconds after you sync.</p>")
+
fmt.Fprintf(w, "<p>Hello %s</p>\n", user.Current(ctx).Email)
fmt.Fprintln(w, "<ul>")
}
fmt.Fprintln(w, "</li>")
- fmt.Fprint(w, "<li>Google: ")
+ fmt.Fprint(w, "<li>Google Fit: ")
if haveGoogleToken {
fmt.Fprint(w, `<strong style="color: DarkGreen;">Authorized</strong>`)
} else {