soundcloud.ts
Version:
Soundcloud API v2 wrapper with typings.
15 lines (12 loc) • 367 B
text/typescript
import type {SoundcloudUser} from "../types"
import {API} from "../API"
export class Me {
public constructor(private readonly api: API) {}
/**
* Gets your own profile, using the Soundcloud v2 API.
*/
public get = async () => {
const response = await this.api.getV2("/me")
return response as Promise<SoundcloudUser>
}
}