UNPKG

nuxtify-api

Version:

Lightweight music API for client without third-party libraries.

19 lines (18 loc) 810 B
export declare class Base { private readonly version; private readonly ctime; private readonly secretKey; private readonly apiKey; constructor(apiKey?: string, secretKey?: string); private createHash256; private createHmac512; private getCookie; protected createRequest(path: string, params: Record<string, string | number>): Promise<any>; protected createHomeSig(path: string): string; protected createPodcastSig(path: string, type: string): string; protected createSearchSig(path: string, type: string, page: number): string; protected createCommentSig(path: string, id: string): string; protected createIdSig(path: string, id: string): string; protected createNoIdSig(path: string): string; protected createSuggestSig(path: string): string; }