Skip to content

Commit

Permalink
updated readme with the correct implimentation of ClientCredentialStr…
Browse files Browse the repository at this point in the history
…ategy
  • Loading branch information
KirtanSoni committed Dec 22, 2023
1 parent 3197d15 commit 6947cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { SpotifyApi } from '@spotify/web-api-ts-sdk';

// Choose one of the following:
const sdk = SpotifyApi.withUserAuthorization("client-id", "https://localhost:3000", ["scope1", "scope2"]);
const sdk = SpotifyApi.withClientCredentials("client-id", "secret", ["scope1", "scope2"]);
const sdk = SpotifyApi.withClientCredentials("client-id", "secret");
```

Each of these factory methods will return a `SpotifyApi` instance, which you can use to make requests to the Spotify Web API.
Expand Down

0 comments on commit 6947cc4

Please sign in to comment.