Skip to content

Commit 30785a2

Browse files
FenwickElliottbradfitz
authored andcommitted
spotify: add Spotify endpoints
Added Spotify endpoints as per documentation: https://developer.spotify.com/web-api/authorization-guide/ Fixes golang/go#23338 Change-Id: Ic1a0d6c8f35923b1c6d497e07f028fe92e97e6b6 Reviewed-on: https://go-review.googlesource.com/86250 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 876b1c6 commit 30785a2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spotify/spotify.go

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2018 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// Package spotify provides constants for using OAuth2 to access Spotify.
6+
package spotify // import "golang.org/x/oauth2/spotify"
7+
8+
import (
9+
"golang.org/x/oauth2"
10+
)
11+
12+
// Endpoint is Spotify's OAuth 2.0 endpoint.
13+
var Endpoint = oauth2.Endpoint{
14+
AuthURL: "https://accounts.spotify.com/authorize",
15+
TokenURL: "https://accounts.spotify.com/api/token",
16+
}

0 commit comments

Comments
 (0)