instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
33 lines (32 loc) • 1.02 kB
TypeScript
import { AxiosResponse } from 'axios';
import { MediaField } from '../../../Enums';
import { AbstractGetMediaRequest } from '../../AbstractGetMediaRequest';
import { GetMediaInfoResponse } from './GetMediaInfoResponse';
/**
* A request that gets information about a media object.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.2.0
*/
export declare class GetMediaInfoRequest extends AbstractGetMediaRequest<GetMediaInfoResponse> {
/**
* The media object id.
*/
private mediaId;
/**
* 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: MediaField[]);
/**
* @inheritdoc
*/
protected url(): string;
/**
* @inheritdoc
*/
protected parseResponse(response: AxiosResponse<never>): GetMediaInfoResponse;
}