@spotify/web-api-ts-sdk
Version:
A typescript SDK for the Spotify Web API
11 lines (10 loc) • 656 B
TypeScript
import { SpotifyApi } from "../SpotifyApi.js";
export default class EndpointsBase {
protected api: SpotifyApi;
constructor(api: SpotifyApi);
protected getRequest<TReturnType>(url: string): Promise<TReturnType>;
protected postRequest<TReturnType, TBody = unknown>(url: string, body?: TBody, contentType?: string | undefined): Promise<TReturnType>;
protected putRequest<TReturnType, TBody = unknown>(url: string, body?: TBody, contentType?: string | undefined): Promise<TReturnType>;
protected deleteRequest<TReturnType, TBody = unknown>(url: string, body?: TBody): Promise<TReturnType>;
protected paramsFor(args: any): string;
}