summaryrefslogtreecommitdiff
path: root/strava/strava.go
diff options
context:
space:
mode:
Diffstat (limited to 'strava/strava.go')
-rw-r--r--strava/strava.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/strava/strava.go b/strava/strava.go
index c7a84d0..7c555be 100644
--- a/strava/strava.go
+++ b/strava/strava.go
@@ -12,10 +12,9 @@ import (
)
const (
- AuthURL = "https://www.strava.com/oauth/authorize"
- TokenURL = "https://www.strava.com/oauth/token"
- APIURL = "https://www.strava.com/api/v3"
- LoginPort = 8787
+ AuthURL = "https://www.strava.com/oauth/authorize"
+ TokenURL = "https://www.strava.com/oauth/token"
+ APIURL = "https://www.strava.com/api/v3"
)
var (
@@ -29,10 +28,6 @@ type Token struct {
ExpiresAt time.Time
}
-func AuthorizeURL(clientID, redirectURI string) string {
- return AuthorizeURLWithState(clientID, redirectURI, "")
-}
-
func AuthorizeURLWithState(clientID, redirectURI, state string) string {
q := url.Values{}
q.Set("client_id", clientID)