soundcloud-api-ts - v1.9.0
    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;
        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)

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

    HTTP method

    path: string

    API path relative to https://api.soundcloud.com (e.g. "/tracks/123")

    token?: string

    OAuth access token to include in the Authorization header