soundcloud-api-ts - v1.13.4
    Preparing search index...

    Interface RequestOptions

    Options for making a request to the SoundCloud API via scFetch.

    interface RequestOptions {
        body?: Record<string, unknown> | FormData | URLSearchParams;
        contentType?: string;
        headers?: Record<string, string>;
        method: "GET" | "POST" | "PUT" | "DELETE";
        path: string;
        token?: string;
    }
    Index

    Properties

    body?: Record<string, unknown> | FormData | URLSearchParams

    Request body — automatically serialized based on type

    contentType?: string

    Override the Content-Type header (defaults to "application/json" for object bodies)

    headers?: Record<string, string>

    Additional headers to include in the request

    method: "GET" | "POST" | "PUT" | "DELETE"

    HTTP method

    path: string

    API path relative to https://api.soundcloud.com (e.g. "/tracks/123"). Paths starting with /oauth are routed to https://secure.soundcloud.com.

    token?: string

    OAuth access token to include in the Authorization header