soundcloud-api-ts-next
    Preparing search index...

    Interface SoundCloudServerClient

    A thin wrapper around SoundCloudClient with an optional pre-resolved user access token. Returned by createSoundCloudServerClient.

    interface SoundCloudServerClient {
        client: SoundCloudClient;
        userToken: string | undefined;
        token(): string | undefined;
    }
    Index

    Properties

    Methods

    Properties

    client: SoundCloudClient

    The underlying SoundCloudClient instance from soundcloud-api-ts.

    userToken: string | undefined

    The resolved user access token (if getToken was provided and returned a value), or undefined for public/client-credentials-only usage.

    Methods

    • Convenience: returns the resolved token for passing to authenticated API calls, e.g. sc.client.me.getMe({ token: sc.token() }).

      Returns string | undefined