instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
31 lines (30 loc) • 1.26 kB
TypeScript
import { LifetimeMetric, MetricPeriod } from '../../../Enums';
import { AbstractGetPageInsightsRequest } from './AbstractGetPageInsightsRequest';
import { GetPageLifetimeInsightsResponse } from './GetPageLifetimeInsightsResponse';
import { BasicInsightsMetricData, MetricValue } from '../../data/insights/BasicInsightsMetricData';
import { ComplexMetricValue } from '../../data/insights/ComplexMetric';
/**
* A Page Insights Get Request that queries a lifetime metric.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.2.0
*/
export declare class GetPageLifetimeInsightsRequest extends AbstractGetPageInsightsRequest<LifetimeMetric, GetPageLifetimeInsightsResponse> {
/**
* The constructor.
* @param accessToken the access token.
* @param pageId the page id.
* @param metrics the metrics to retrieve from the API. If no metric is specified, all are retrieved.
*/
constructor(accessToken: string, pageId: string, ...metrics: LifetimeMetric[]);
/**
* @inheritdoc
*/
protected parseResponse(response: {
data: BasicInsightsMetricData<MetricValue<ComplexMetricValue>[]>[];
}): GetPageLifetimeInsightsResponse;
/**
* @inheritdoc
*/
protected period(): MetricPeriod;
}