tenor-gif-api
Version:
A simple and easy-to-use wrapper for the Tenor API, enabling quick and effective integrations.
21 lines (20 loc) • 659 B
TypeScript
import { FetchWrapper } from '../utils/FetchWrapper';
export interface TrendingParams {
country?: string;
locale?: string;
limit?: number;
}
export interface TrendingResponse {
results: string[];
}
export declare class TrendingService {
private fetchWrapper;
constructor(fetchWrapper: FetchWrapper);
/**
* Fetches a list of the current trending search terms.
*
* @param params - An object containing the parameters for the request.
* @returns A promise that resolves to a TrendingResponse containing the trending search terms.
*/
getTrendingTerms(params?: TrendingParams): Promise<TrendingResponse>;
}