Class API

Hierarchy

  • API

Constructors

  • Parameters

    • Optional clientId: string
    • Optional oauthToken: string
    • Optional proxy: string

    Returns API

Properties

api: Pool = ...
apiV2: Pool = ...
clientId?: string
oauthToken?: string
proxy?: Pool
web: Pool = ...
headers: Record<string, any> = ...

Accessors

  • get headers(): Record<string, any>
  • Returns Record<string, any>

Methods

  • Gets an endpoint from the Soundcloud API.

    Parameters

    • endpoint: string
    • Optional params: Record<string, any>

    Returns Promise<any>

  • Parameters

    • Optional reset: boolean

    Returns Promise<string>

  • Returns Promise<string>

  • Returns Promise<string>

  • Gets a URL, such as download, stream, attachment, etc.

    Parameters

    • URI: string
    • Optional params: Record<string, any>

    Returns Promise<any>

  • Gets an endpoint from the Soundcloud V2 API.

    Parameters

    • endpoint: string
    • Optional params: Record<string, any>

    Returns Promise<any>

  • Some endpoints use the main website as the URL.

    Parameters

    • endpoint: string
    • Optional params: Record<string, any>

    Returns Promise<any>

  • Parameters

    • endpoint: string
    • Optional params: Record<string, any>

    Returns Promise<any>