From 6947cc4f7f64846fd8e56c838ef60c5b1d884efe Mon Sep 17 00:00:00 2001 From: KirtanSoni Date: Thu, 21 Dec 2023 21:17:14 -0700 Subject: [PATCH] updated readme with the correct implimentation of ClientCredentialStrategy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ec5def..f90aa68 100644 --- a/README.md +++ b/README.md @@ -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.