instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
31 lines (30 loc) • 857 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetHashtagIdResponse = void 0;
const AbstractResponse_1 = require("../../AbstractResponse");
/**
* Class that represents a response from a Get Hashtag Id request.
* Technically the request will return an array of objects, but in practice it will always have a single item.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.4.0
*/
class GetHashtagIdResponse extends AbstractResponse_1.AbstractResponse {
/**
* The constructor.
*
* @param body the body of the response
*/
constructor(body) {
super(body.data);
}
/**
* Gets the id of the hashtag.
*
* @returns the id of the hashtag.
*/
getId() {
return this.data[0].id;
}
}
exports.GetHashtagIdResponse = GetHashtagIdResponse;