instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
29 lines (28 loc) • 929 B
TypeScript
import { AxiosResponse } from 'axios';
import { Method } from '../../RequestConfig';
import { AbstractMediaCommentsRequest } from './AbstractMediaCommentsRequest';
import { CreatedObjectIdResponse } from '../../common/CreatedObjectIdResponse';
/**
* A request that creates a comment on a media object.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.5.0
*/
export declare class PostMediaCommentRequest extends AbstractMediaCommentsRequest<CreatedObjectIdResponse> {
/**
* The constructor.
*
* @param accessToken The access token.
* @param mediaId the id of the media object.
* @param text the text of the comment.
*/
constructor(accessToken: string, mediaId: string, text: string);
/**
* @inheritdoc
*/
protected parseResponse(response: AxiosResponse<never>): CreatedObjectIdResponse;
/**
* @inheritdoc
*/
protected method(): Method;
}