From ae4b69da3bf45a53f82205f6000f7cb56d0d6d26 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 16 Jan 2018 17:11:39 +0100 Subject: [PATCH] Rebrand as "Kraftakt". --- fitbit/fitbit.go | 2 +- gfit/gfit.go | 2 +- gfitsync.go | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fitbit/fitbit.go b/fitbit/fitbit.go index a24f98e..f534906 100644 --- a/fitbit/fitbit.go +++ b/fitbit/fitbit.go @@ -22,7 +22,7 @@ var oauth2Config = &oauth2.Config{ 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"}, } diff --git a/gfit/gfit.go b/gfit/gfit.go index 7540bf4..d447bc0 100644 --- a/gfit/gfit.go +++ b/gfit/gfit.go @@ -28,7 +28,7 @@ var oauthConfig = &oauth2.Config{ 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, diff --git a/gfitsync.go b/gfitsync.go index beb44d7..f12e7f4 100644 --- a/gfitsync.go +++ b/gfitsync.go @@ -82,7 +82,11 @@ func indexHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u } haveGoogleToken := err == nil - fmt.Fprintln(w, "

Fitbit to Google Fit sync

") + fmt.Fprintln(w, "Kraftakt") + fmt.Fprintln(w, "

Kraftakt

") + + fmt.Fprintln(w, "

Kraftakt copies your Fitbit data to Google Fit, seconds after you sync.

") + fmt.Fprintf(w, "

Hello %s

\n", user.Current(ctx).Email) fmt.Fprintln(w, "