Skip to content

Commit

Permalink
Update auth.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyCrazy authored Mar 18, 2019
1 parent 2c093a7 commit c6de994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpotifyAPI.Docs/docs/SpotifyWebAPI/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ SpotifyWebAPI spotify;
// You should store a reference to WebAPIFactory if you are using AutoRefresh or want to manually refresh it later on. New WebAPIFactory objects cannot refresh SpotifyWebAPI object that they did not give to you.
webApiFactory = new TokenSwapWebAPIFactory("INSERT LINK TO YOUR index.php HERE")
{
Scope = Scope.UserReadPrivate | Scope.UserReadEmail | Scope.PlaylistReadPrivate | Scope.UserLibraryRead | Scope.UserReadPrivate | Scope.UserFollowRead | Scope.UserReadBirthdate | Scope.UserTopRead | Scope.PlaylistReadCollaborative | Scope.UserReadRecentlyPlayed | Scope.UserReadPlaybackState | Scope.UserModifyPlaybackState | Scope.PlaylistModifyPublic,
Scope = Scope.UserReadPrivate | Scope.UserReadEmail | Scope.PlaylistReadPrivate,
AutoRefresh = true
};
// You may want to react to being able to use the Spotify service.
Expand Down Expand Up @@ -116,7 +116,7 @@ recommended if you are having issues with TokenSwapWebAPIFactory or need access
TokenSwapAuth auth = new TokenSwapAuth(
exchangeServerUri: "INSERT LINK TO YOUR index.php HERE",
serverUri: "http://localhost:4002",
scope: Scope.UserReadPrivate | Scope.UserReadEmail | Scope.PlaylistReadPrivate | Scope.UserLibraryRead | Scope.UserReadPrivate | Scope.UserFollowRead | Scope.UserReadBirthdate | Scope.UserTopRead | Scope.PlaylistReadCollaborative | Scope.UserReadRecentlyPlayed | Scope.UserReadPlaybackState | Scope.UserModifyPlaybackState | Scope.PlaylistModifyPublic
scope: Scope.UserReadPrivate | Scope.UserReadEmail | Scope.PlaylistReadPrivate
);
auth.AuthReceived += async (sender, response) =>
{
Expand Down

0 comments on commit c6de994

Please sign in to comment.