UNPKG

clickup_api

Version:

No oficial module for ClickUp API

28 lines (25 loc) 622 B
const Requests = require("../utils/requests"); var SharedHierarchy = function (token, request) { this.token = token; this.request = request; }; /** * See the shared hierarchy * @param {String} team_id Team id to be consulted */ SharedHierarchy.prototype.get_shared_hierarchy = function (team_id) { var token = this.token; var request = this.request; return new Promise(async function (resolve, reject) { try { var res = await request.https_clickupapi_get( `/api/v2/team/${team_id}/shared`, token ); resolve(res); } catch (err) { reject(err); } }); }; module.exports = SharedHierarchy;