instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
30 lines (29 loc) • 775 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractCommentRequest = void 0;
const AbstractRequest_1 = require("../AbstractRequest");
/**
* Abstract class for request related to comments.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.6.0
*/
class AbstractCommentRequest extends AbstractRequest_1.AbstractRequest {
/**
* The constructor.
*
* @param accessToken the access token.
* @param commentId the id of the comment.
*/
constructor(accessToken, commentId) {
super(accessToken);
this.commentId = commentId;
}
/**
* @inheritdoc
*/
url() {
return `/${this.commentId}`;
}
}
exports.AbstractCommentRequest = AbstractCommentRequest;