'SpotifyAPI.Web.APIUnauthorizedException: 'Unauthorized.' C#

everyone i'm trying get all playlists from spotify with https://github.com/JohnnyCrazy/SpotifyAPI-NET

But getting SpotifyAPI.Web.APIUnauthorizedException: 'Unauthorized.' token provided i cant get what is the problem thanks you for advice )

var config = SpotifyClientConfig.CreateDefault();

        var request = new ClientCredentialsRequest("7099d84277c1466aaded57f5d857798", 
            "3a129939db7247aa980beeaae2374ff");
        var response = await new OAuthClient(config).RequestToken(request);

        var spotify = new SpotifyClient(config.WithToken(response.AccessToken));

        var page = await spotify.Playlists.CurrentUsers();

        var allPages = await spotify.PaginateAll(page);

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source