Sets Spotify API credentials
Stores the Spotify client ID and secret for use in API calls. These credentials are required for authenticating API requests to the Spotify Web API.
Spotify Client ID from the Spotify Developer Dashboard
Spotify Client Secret from the Spotify Developer Dashboard
// Set credentials during monitoring initializationsetCredentials('your-client-id', 'your-client-secret'); Copy
// Set credentials during monitoring initializationsetCredentials('your-client-id', 'your-client-secret');
export function setCredentials(id: string, secret: string): void { clientId = id; clientSecret = secret;} Copy
export function setCredentials(id: string, secret: string): void { clientId = id; clientSecret = secret;}
Sets Spotify API credentials
Stores the Spotify client ID and secret for use in API calls. These credentials are required for authenticating API requests to the Spotify Web API.