UNPKG

instagram-graph-api

Version:

A library to help perform requests to the Instagram Graph API.

25 lines (24 loc) 936 B
import { AxiosResponse } from 'axios'; import { CommentField } from '../../../Enums'; import { GetObjectCommentsResponse } from '../../common/GetObjectCommentsResponse'; import { AbstractMediaCommentsRequest } from './AbstractMediaCommentsRequest'; /** * A request that gets the comments of a media object. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.5.0 */ export declare class GetMediaCommentsRequest extends AbstractMediaCommentsRequest<GetObjectCommentsResponse> { /** * The constructor. * * @param accessToken the access token. * @param mediaId the media object id. * @param fields the fields to retrieve from the API. If no field is specified, all are retrieved. */ constructor(accessToken: string, mediaId: string, ...fields: CommentField[]); /** * @inheritdoc */ protected parseResponse(response: AxiosResponse<never>): GetObjectCommentsResponse; }