Version 9.11.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@9.11.0 

Module Import:

import {
  apiRequest,
  authenticateRequest,
  canCreateChannel,
  canCreateReaction,
  canDeletePost,
  canModifyChannel,
  canModifyPost,
  canPostToChannel,
  canReadFromChannel,
  createChannel,
  createPost,
  createReaction,
  createReply,
  fetchChannel,
  fetchPost,
  isChannelInclusive,
  isDiscussable,
  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@9.11.0/dist/umd/discussions.umd.min.js"></script>

CDN with SRI: