Request configuration (path, method, token, body)
OptionalrefreshCtx: AutoRefreshContextOptional auto-refresh context for transparent token renewal
OptionalonRequest: (telemetry: SCRequestTelemetry) => voidParsed JSON response, redirect URL, or undefined for empty responses
Make a request to the SoundCloud API using native
fetch.Handles JSON serialization, OAuth headers, automatic retries on 429/5xx, and optional automatic token refresh on 401. For 302 redirects, returns the
Locationheader value. For 204 responses, returnsundefined.