• 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.

    Parameters

    • id: string

      Spotify Client ID from the Spotify Developer Dashboard

    • secret: string

      Spotify Client Secret from the Spotify Developer Dashboard

    Returns void

    // Set credentials during monitoring initialization
    setCredentials('your-client-id', 'your-client-secret');
    export function setCredentials(id: string, secret: string): void {
    clientId = id;
    clientSecret = secret;
    }