UNPKG

instagram-graph-api

Version:

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

29 lines (28 loc) 912 B
import { AxiosResponse } from 'axios'; import { Method } from '../RequestConfig'; import { AbstractCommentRequest } from './AbstractCommentRequest'; import { CommentUpdateResponse } from './CommentUpdateResponse'; /** * Request to toggle whether a comment is hidden. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.6.0 */ export declare class PostHideCommentRequest extends AbstractCommentRequest<CommentUpdateResponse> { /** * The constructor. * * @param accessToken the access token. * @param commentId the id of the comment. * @param hide whether to hide or show the comment (default: true). */ constructor(accessToken: string, commentId: string, hide?: boolean); /** * @inheritdoc */ protected parseResponse(response: AxiosResponse<never>): CommentUpdateResponse; /** * @inheritdoc */ protected method(): Method; }