UNPKG

tenor-gif-api

Version:

A simple and easy-to-use wrapper for the Tenor API, enabling quick and effective integrations.

21 lines (20 loc) 735 B
import { FetchWrapper } from '../utils/FetchWrapper'; import { ResponseObject } from './interfaces/ResponseObject'; export interface PostsParams { ids: string; media_filter?: string; } export interface PostsResponse { results: ResponseObject[]; } export declare class PostsService { private fetchWrapper; constructor(fetchWrapper: FetchWrapper); /** * Fetches the GIFs, stickers, or a combination of the two for the specified IDs. * * @param params - An object containing the parameters for the request, including the IDs of the posts. * @returns A promise that resolves to a PostsResponse containing the requested media. */ getPosts(params: PostsParams): Promise<PostsResponse>; }