"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaEntity = void 0;
const request_promise_1 = __importDefault(require("request-promise"));
const entity_1 = require("../core/entity");
class MediaEntity extends entity_1.Entity {
    static async oembed(url) {
        return (0, request_promise_1.default)({
            url: 'https://api.instagram.com/instagram_oembed/',
            json: true,
            qs: {
                url,
            },
        });
    }
}
exports.MediaEntity = MediaEntity;
