Version 8.22.0

@esri/hub-discussions

Module to interact with ArcGIS Hub Discussions API in Node.js and modern browsers.

npm install:

npm install @esri/hub-discussions @esri/arcgis-rest-auth@^2.14.0 || 3  @esri/arcgis-rest-request@^2.14.0 || 3  @esri/hub-common@^8.8.2 

Module Import:

import {
  apiRequest,
  authenticateRequest,
  canCreateChannel,
  canCreateReaction,
  canModifyChannel,
  canPostToChannel,
  canReadFromChannel,
  createChannel,
  createPost,
  createReaction,
  createReply,
  fetchChannel,
  fetchPost,
  isChannelInclusive,
  isGroupDiscussable,
  isItemDiscussable,
  isOrgAdmin,
  parseDiscussionURI,
  reduceByGroupMembership,
  removeChannel,
  removePost,
  removeReaction,
  request,
  searchChannels,
  searchPosts,
  updateChannel,
  updatePost,
  updatePostSharing,
  updatePostStatus,
  RemoteServerError,
} from "@esri/hub-discussions";

CDN:

<script src="https://unpkg.com/@esri/hub-discussions@8.22.0/dist/umd/discussions.umd.min.js"></script>

CDN with SRI: