instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
27 lines (26 loc) • 967 B
TypeScript
import { CommentField } from '../../../Enums';
import { GetObjectCommentsResponse } from '../../common/GetObjectCommentsResponse';
import { AbstractMediaCommentsRequest } from './AbstractMediaCommentsRequest';
import { CommentData } from '../../data/CommentData';
/**
* 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: {
data: CommentData[];
}): GetObjectCommentsResponse;
}