Skip to content

Commit

Permalink
spotify: add Spotify endpoints
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
FenwickElliott authored and bradfitz committed Jan 4, 2018
1 parent 876b1c6 commit 30785a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spotify/spotify.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package spotify provides constants for using OAuth2 to access Spotify.
package spotify // import "golang.org/x/oauth2/spotify"

import (
"golang.org/x/oauth2"
)

// Endpoint is Spotify's OAuth 2.0 endpoint.
var Endpoint = oauth2.Endpoint{
AuthURL: "https://accounts.spotify.com/authorize",
TokenURL: "https://accounts.spotify.com/api/token",
}

0 comments on commit 30785a2

Please sign in to comment.