instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
31 lines (30 loc) • 921 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetMeResponse = void 0;
const AbstractResponse_1 = require("../../AbstractResponse");
/**
* Class that represents a response from a Get Me request.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.3.0
*/
class GetMeResponse extends AbstractResponse_1.AbstractResponse {
/**
* Gets the page id of the user that made the request.
*
* @returns the page id of the user that made the request.
*/
getPageId() {
return this.data.id;
}
/**
* Gets the instagram page id of the user that made the request.
*
* @returns the intagram page id of the user that made the request.
*/
getIgPageId() {
var _a;
return (_a = this.data.instagram_business_account) === null || _a === void 0 ? void 0 : _a.id;
}
}
exports.GetMeResponse = GetMeResponse;