@toplast/lastfm
Version:
A typed Last.fm API client for Node.js
21 lines (20 loc) • 1.97 kB
TypeScript
import { IUserGetFriends, IUserGetInfo, IUserGetLovedTracks, IUserGetPersonalTags, IUserGetRecentTracks, IUserGetTopAlbums, IUserGetTopArtists, IUserGetTopTags, IUserGetTopTracks, IUserGetWeeklyAlbumChart, IUserGetWeeklyArtistChart, IUserGetWeeklyChartList, IUserGetWeeklyTrackChart, IUserMethod } from "./user.interface";
import { IUserGetFriendsParams, IUserGetInfoParams, IUserGetLovedTracksParams, IUserGetPersonalTagsParams, IUserGetRecentTracksParams, IUserGetTopAlbumsParams, IUserGetTopArtistsParams, IUserGetTopTagsParams, IUserGetTopTracksParams, IUserGetWeeklyAlbumChartParams, IUserGetWeeklyArtistChartParams, IUserGetWeeklyChartListParams, IUserGetWeeklyTrackChartParams } from "./params.interface";
export declare class User implements IUserMethod {
private readonly API_KEY;
private readonly REQUEST;
constructor(API_KEY: string);
getFriends(params: IUserGetFriendsParams): Promise<IUserGetFriends>;
getInfo(params: IUserGetInfoParams): Promise<IUserGetInfo>;
getLovedTracks(params: IUserGetLovedTracksParams): Promise<IUserGetLovedTracks>;
getPersonalTags(params: IUserGetPersonalTagsParams): Promise<IUserGetPersonalTags>;
getRecentTracks(params: IUserGetRecentTracksParams): Promise<IUserGetRecentTracks>;
getTopAlbums(params: IUserGetTopAlbumsParams): Promise<IUserGetTopAlbums>;
getTopArtists(params: IUserGetTopArtistsParams): Promise<IUserGetTopArtists>;
getTopTags(params: IUserGetTopTagsParams): Promise<IUserGetTopTags>;
getTopTracks(params: IUserGetTopTracksParams): Promise<IUserGetTopTracks>;
getWeeklyAlbumChart(params: IUserGetWeeklyAlbumChartParams): Promise<IUserGetWeeklyAlbumChart>;
getWeeklyArtistChart(params: IUserGetWeeklyArtistChartParams): Promise<IUserGetWeeklyArtistChart>;
getWeeklyChartList(params: IUserGetWeeklyChartListParams): Promise<IUserGetWeeklyChartList>;
getWeeklyTrackChart(params: IUserGetWeeklyTrackChartParams): Promise<IUserGetWeeklyTrackChart>;
}