soundcloud.ts
Version:
Soundcloud API v2 wrapper with typings.
50 lines (45 loc) • 1.04 kB
text/typescript
export type SoundcloudImageFormats = "t500x500" | "crop" | "t300x300" | "large" | "t67x67" | "badge" | "small" | "tiny" | "mini"
export interface SoundcloudApp {
id: number
kind: "app"
name: string
uri: string
permalink_url: string
external_url: string
creator: string
}
export interface SoundcloudOembedFilter {
url: string
format?: string
callback?: string
maxwidth?: string
maxheight?: string
color?: string
auto_play?: boolean
show_comments?: boolean
iframe?: boolean
}
export interface SoundcloudOembed {
version: string
type: string
provider_name: string
provider_url: string
height: number
width: string
title: string
description: string
html: string
thumbnail_url?: string
author_name?: string
author_url?: string
}
export interface SoundcloudSearch {
total_results: number
next_href: string
query_urn: string
}
export interface SoundcloudFilter {
q: string
limit?: number
offset?: number
}