instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
38 lines (37 loc) • 1.27 kB
TypeScript
import { HashtagMediaField } from '../../../Enums';
import { AbstractGetMediaRequest } from '../../AbstractGetMediaRequest';
import { GetHashtagMediaResponse } from './GetHashtagMediaResponse';
import { MediaData } from '../../data/MediaData';
import { PagingData } from '../../data/Paging';
/**
* 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 AbstractGetMediaRequest<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: {
data: MediaData[];
paging: PagingData;
}): GetHashtagMediaResponse;
/**
* @inheritdoc
*/
protected url(): string;
}