UNPKG

soundcloud.ts

Version:

Soundcloud API v2 wrapper with typings.

15 lines (12 loc) 382 B
import type {SoundcloudApp} from "../types" import {API} from "../API" export class Apps { public constructor(private readonly api: API) {} /** * Gets Soundcloud apps, using the Soundcloud v2 API. */ public get = async () => { const response = await this.api.getV2("/apps") as any return response.collection as Promise<SoundcloudApp> } }