instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
25 lines (24 loc) • 865 B
TypeScript
import { AxiosResponse } from 'axios';
import { CommentField } from '../../Enums';
import { AbstractCommentRequest } from './AbstractCommentRequest';
import { GetCommentResponse } from './GetCommentResponse';
/**
* Request to get information about a comment.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.6.0
*/
export declare class GetCommentRequest extends AbstractCommentRequest<GetCommentResponse> {
/**
* The constructor.
*
* @param accessToken the access token.
* @param pageId the id of the comment.
* @param fields the fields to retrieve from the API. If no field is specified, all are retrieved.
*/
constructor(accessToken: string, commentId: string, ...fields: CommentField[]);
/**
* @inheritdoc
*/
protected parseResponse(response: AxiosResponse<never>): GetCommentResponse;
}