瀏覽代碼

Add more scopes to Spotify

Toni Fadjukoff 7 年之前
父節點
當前提交
1eac2d740c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bot.go

+ 1 - 1
bot.go 查看文件

39
 }
39
 }
40
 
40
 
41
 func (app *App) CreateSpotifyAuthenticator() *spotify.Authenticator {
41
 func (app *App) CreateSpotifyAuthenticator() *spotify.Authenticator {
42
-	auth := spotify.NewAuthenticator(app.credentials.SpotifyCallback, spotify.ScopePlaylistModifyPublic)
42
+	auth := spotify.NewAuthenticator(app.credentials.SpotifyCallback, spotify.ScopeUserReadPrivate, spotify.ScopePlaylistModifyPrivate, spotify.ScopePlaylistModifyPublic)
43
 	auth.SetAuthInfo(app.credentials.SpotifyClientID, app.credentials.SpotifyClientSecret)
43
 	auth.SetAuthInfo(app.credentials.SpotifyClientID, app.credentials.SpotifyClientSecret)
44
 	return &auth
44
 	return &auth
45
 }
45
 }