UNPKG

instagram-graph-api

Version:

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

34 lines (33 loc) 1.14 kB
import { AxiosResponse } from 'axios'; import { HashtagMediaField } from '../../../Enums'; import { AbstractRequest } from '../../AbstractRequest'; import { GetHashtagMediaResponse } from './GetHashtagMediaResponse'; /** * A request that gets information about the media of an hashtag. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.5.0 */ export declare abstract class AbstractGetHashtagMediaRequest extends AbstractRequest<GetHashtagMediaResponse> { /** * The id of the hashtag. */ protected hashtagId: string; /** * The constructor. * * @param accessToken the access token. * @param hashtagId the id of the hashtag. * @param userId the id of the user making the request. * @param fields the fields to retrieve from the API. If no field is specified, all are retrieved. */ constructor(accessToken: string, hashtagId: string, userId: string, ...fields: HashtagMediaField[]); /** * @inheritdoc */ protected parseResponse(response: AxiosResponse<never>): GetHashtagMediaResponse; /** * @inheritdoc */ protected url(): string; }